RubyApp 0.0.79 → 0.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- RubyApp (0.0.79)
4
+ RubyApp (0.0.80)
5
5
  BlueCloth
6
6
  chronic
7
7
  chronic_duration
@@ -47,7 +47,7 @@ GEM
47
47
  ffi (1.0.11)
48
48
  fileutils (0.7)
49
49
  rmagick (>= 2.13.1)
50
- gherkin (2.7.3)
50
+ gherkin (2.7.6)
51
51
  json (>= 1.4.6)
52
52
  haml (3.1.4)
53
53
  json (1.6.5)
@@ -57,8 +57,8 @@ GEM
57
57
  multi_json (1.0.4)
58
58
  nokogiri (1.5.0)
59
59
  numerizer (0.1.1)
60
- r18n-core (0.4.13)
61
- rack (1.4.0)
60
+ r18n-core (0.4.14)
61
+ rack (1.4.1)
62
62
  rack-test (0.6.1)
63
63
  rack (>= 1.0)
64
64
  rake (0.9.2.2)
@@ -83,7 +83,6 @@ GEM
83
83
  term-ansicolor (1.0.7)
84
84
  xpath (0.1.4)
85
85
  nokogiri (~> 1.3)
86
- ya2yaml (0.30)
87
86
  yajl-ruby (1.1.0)
88
87
 
89
88
  PLATFORMS
@@ -97,4 +96,3 @@ DEPENDENCIES
97
96
  rake
98
97
  rspec
99
98
  rspec-mocks
100
- ya2yaml
@@ -1,15 +1,16 @@
1
- ruby_app:
2
- elements:
3
- pages:
4
- authentication:
5
- open_id:
6
- google_authentication_page:
7
- identifier: https://www.google.com/accounts/o8/id
8
- attributes:
9
- email: http://schema.openid.net/contact/email
10
- my_open_id_authentication_page:
11
- identifier: http://myopenid.com
12
- yahoo_authentication_page:
13
- identifier: https://www.yahoo.com
14
- attributes:
15
- email: http://axschema.org/contact/email
1
+ default:
2
+ ruby_app:
3
+ elements:
4
+ pages:
5
+ authentication:
6
+ open_id:
7
+ google_authentication_page:
8
+ identifier: https://www.google.com/accounts/o8/id
9
+ attributes:
10
+ email: http://schema.openid.net/contact/email
11
+ my_open_id_authentication_page:
12
+ identifier: http://myopenid.com
13
+ yahoo_authentication_page:
14
+ identifier: https://www.yahoo.com
15
+ attributes:
16
+ email: http://axschema.org/contact/email
@@ -26,7 +26,9 @@ module RubyApp
26
26
  def initialize(paths)
27
27
  @document = {}
28
28
  paths.each do |path|
29
- @document.merge!(YAML::load(File.open(path)))
29
+ File.open(path, 'r') do |file|
30
+ @document.merge!(YAML::load(file)[ENV['RUBY_APP_CONFIGURATION'] || 'default'] || {})
31
+ end
30
32
  end
31
33
  end
32
34
 
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.0.79"
2
+ VERSION = "0.0.80"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
data/ruby_app.gemspec CHANGED
@@ -38,5 +38,5 @@ Gem::Specification.new do |s|
38
38
  s.add_development_dependency 'rake'
39
39
  s.add_development_dependency 'rspec'
40
40
  s.add_development_dependency 'rspec-mocks'
41
- s.add_development_dependency 'ya2yaml'
41
+ #s.add_development_dependency 'ya2yaml'
42
42
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyApp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 129
4
+ hash: 191
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 79
10
- version: 0.0.79
9
+ - 80
10
+ version: 0.0.80
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-25 00:00:00 Z
18
+ date: 2012-01-26 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -311,20 +311,6 @@ dependencies:
311
311
  type: :development
312
312
  prerelease: false
313
313
  name: rspec-mocks
314
- - !ruby/object:Gem::Dependency
315
- version_requirements: &id022 !ruby/object:Gem::Requirement
316
- none: false
317
- requirements:
318
- - - ">="
319
- - !ruby/object:Gem::Version
320
- hash: 3
321
- segments:
322
- - 0
323
- version: "0"
324
- requirement: *id022
325
- type: :development
326
- prerelease: false
327
- name: ya2yaml
328
314
  description: A web application framework in Ruby
329
315
  email:
330
316
  - frank.ficnar@gmail.com