rconf 0.7.12 → 0.7.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bin/rconf +3 -3
  2. data/lib/rconf/version.rb +1 -1
  3. data/rconf.gemspec +0 -2
  4. metadata +5 -16
data/bin/rconf CHANGED
@@ -98,9 +98,9 @@ where [options] are:
98
98
  ProgressReporter.report_to_stdout
99
99
  report_check 'Retrieving latest rconf...'
100
100
  json = Command.execute('curl', '-s', 'http://rubygems.org/api/v1/gems/rconf.json').output
101
- info = JSON.load(json)
102
- report_fatal 'Failed to retrieve rconf gem information, check network connectivity' unless info
103
- version = info['version']
101
+ json =~ /"version":"([^"]+)"/
102
+ version = Regexp.last_match(1)
103
+ report_fatal 'Failed to retrieve rconf gem information, check network connectivity' unless version
104
104
  report_success
105
105
  report('Latest rconf version is ' + version.blue)
106
106
  rubies = Command.execute('rvm', 'list').output
data/lib/rconf/version.rb CHANGED
@@ -13,7 +13,7 @@ module RightConf
13
13
 
14
14
  MAJOR = 0
15
15
  MINOR = 7
16
- BUILD = 12
16
+ BUILD = 13
17
17
 
18
18
  VERSION = [MAJOR, MINOR, BUILD].map(&:to_s).join('.')
19
19
 
data/rconf.gemspec CHANGED
@@ -13,8 +13,6 @@ Gem::Specification.new do |s|
13
13
 
14
14
  s.rubyforge_project = 'rconf'
15
15
 
16
- s.add_dependency('json', '> 1.1.6')
17
-
18
16
  s.add_development_dependency('rspec', "~> 2.5")
19
17
  s.add_development_dependency('flexmock', "~> 0.9")
20
18
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rconf
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.12
5
+ version: 0.7.13
6
6
  platform: ruby
7
7
  authors:
8
8
  - Raphael Simon
@@ -13,39 +13,28 @@ cert_chain: []
13
13
  date: 2011-04-06 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: json
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
20
- none: false
21
- requirements:
22
- - - ">"
23
- - !ruby/object:Gem::Version
24
- version: 1.1.6
25
- type: :runtime
26
- version_requirements: *id001
27
16
  - !ruby/object:Gem::Dependency
28
17
  name: rspec
29
18
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
19
+ requirement: &id001 !ruby/object:Gem::Requirement
31
20
  none: false
32
21
  requirements:
33
22
  - - ~>
34
23
  - !ruby/object:Gem::Version
35
24
  version: "2.5"
36
25
  type: :development
37
- version_requirements: *id002
26
+ version_requirements: *id001
38
27
  - !ruby/object:Gem::Dependency
39
28
  name: flexmock
40
29
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
30
+ requirement: &id002 !ruby/object:Gem::Requirement
42
31
  none: false
43
32
  requirements:
44
33
  - - ~>
45
34
  - !ruby/object:Gem::Version
46
35
  version: "0.9"
47
36
  type: :development
48
- version_requirements: *id003
37
+ version_requirements: *id002
49
38
  description: |
50
39
  rconf configures the environment for a given application. rconf reads
51
40
  the content of an application configuration file and installs and/or