Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
ce94213f
...
ce94213fbcbf1ca90068a42d8d6f9aaf920ee053
authored
2012-07-03 17:02:05 +0800
by
hannyu
Committed by
Nicolas Perriault
2012-07-14 10:44:46 +0200
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
modify casperjs.gemspec for reading VERSION from package.json file.
1 parent
0aaca5e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
casperjs.gemspec
casperjs.gemspec
View file @
ce94213
# by hannyu
CASPERJS_VERSION
=
File
.
read
(
"package.json"
)[
/version.*:.*"(.*?)"/
,
1
].
gsub
(
/[\-_\+]/
,
"."
)
Gem
::
Specification
.
new
do
|
s
|
s
.
name
=
"casperjs"
s
.
version
=
"1.0.0.RC1"
s
.
version
=
CASPERJS_VERSION
s
.
homepage
=
"http://casperjs.org/"
s
.
authors
=
[
"Nicolas Perriault"
,
]
s
.
email
=
[
"nperriault@gmail.com"
,]
...
...
Please
register
or
sign in
to post a comment