awestruct 0.5.6.beta9 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca256f329051e03285724bbdd41dde4562ce6ce6
4
- data.tar.gz: 995924213e455a5840477dacda5263c860f44225
3
+ metadata.gz: b14ea27426eef7dea8637b64067898a0aa0fcebb
4
+ data.tar.gz: f481a9b33a72d7e098055e373dbfbce8a058a580
5
5
  SHA512:
6
- metadata.gz: 1ac323c0af741443132a7e8c1fa15a7e2d35e82af15c0333ddc38997ff9743311843a3acf09afebb007f5908d2835dae488ec4f29dcf59eeeaca3c6e1bbf719f
7
- data.tar.gz: 5841d1ab558f57cd09a8bcf51ab91d4e98a709fe76f6e6fe4a086240d823615a0d88740d58071418a2734ec0eee18a39b01fe3dc345df4a8162ef3c5561f8f6a
6
+ metadata.gz: ecc34b84694c4b5c81ab5ccdc8f5e0be17bf4ff80922f4c46874f6896a40dbd689ada792c1275229586050dbfe401b18f529f98252866e29a5af4977a1839404
7
+ data.tar.gz: 2d3d429ab37e94febfaba72cdfa8a0e40ec51619123b646712f2d3b6d7aeee7cf107993b4528fee4ca6a2dbb709b981810e915240f1784fade9d728ccb69acc0
@@ -4,7 +4,7 @@ require 'awestruct/version'
4
4
  spec = Gem::Specification.new do |s|
5
5
  s.name = 'awestruct'
6
6
  s.version = Awestruct::VERSION
7
- s.date = '2015-07-24'
7
+ s.date = '2015-08-28'
8
8
 
9
9
  s.authors = ['Bob McWhirter', 'Jason Porter', 'Lance Ball', 'Dan Allen', 'Torsten Curdt', 'other contributors']
10
10
  s.email = ['bob@mcwhirter.org', 'lightguard.jp@gmail.com', 'lball@redhat.com', 'dan.j.allen@gmail.com', 'tcurdt@vafer.org']
@@ -51,7 +51,6 @@ Haml and Markdown filters are touchy things. Redcarpet or Rdiscount work well if
51
51
  s.add_development_dependency 'compass-960-plugin', '~> 0.10','>= 0.10.4'
52
52
  s.add_development_dependency 'bootstrap-sass', '~> 3', '>= 3.2.0.2'
53
53
  s.add_development_dependency 'zurb-foundation', '~> 4.3.2', '>= 4.3.2'
54
- s.add_development_dependency 'simplecov', '~> 0.9'
55
54
  s.add_development_dependency 'rspec', '~> 3.0'
56
55
  s.add_development_dependency 'guard-rspec', '~> 4.0'
57
56
  end
@@ -6,6 +6,10 @@ module Awestruct
6
6
 
7
7
  include AStructMixin
8
8
 
9
+ if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
10
+ undef org, com, java, javax, javafx # Issue #480
11
+ end
12
+
9
13
  def initialize(hash=nil)
10
14
  hash.each{|k,v| self[k]=v } if hash
11
15
  end
@@ -162,9 +162,9 @@ module Awestruct
162
162
  end
163
163
 
164
164
  opts.parse!(args)
165
- self.base_url ||= DEFAULT_BASE_URL
166
165
  self.port ||= DEFAULT_PORT
167
- self.bind_addr ||= DEFAULT_BIND_ADDR
166
+ self.bind_addr = LOCAL_HOSTS[DEFAULT_BIND_ADDR] if self.bind_addr === DEFAULT_BIND_ADDR
167
+ self.base_url = %(http://#{self.bind_addr}:#{self.port}) if self.base_url === DEFAULT_BASE_URL
168
168
 
169
169
  self.generate = true if self.generate.nil?
170
170
  self
@@ -1,3 +1,3 @@
1
1
  module Awestruct
2
- VERSION = '0.5.6.beta9'
2
+ VERSION = '0.5.6'
3
3
  end
@@ -10,6 +10,13 @@ describe Awestruct::AStruct do
10
10
  s['taco'].should == 'tasty'
11
11
  end
12
12
 
13
+ it "should not have org, com, java defined" do
14
+ s = Awestruct::AStruct.new
15
+ s.java.should be_nil
16
+ s.com.should be_nil
17
+ s.org.should be_nil
18
+ end
19
+
13
20
  it "should allow access to members through indifferent hash access" do
14
21
  s = Awestruct::AStruct.new( :foo=>'bar', 'taco'=>'tasty' )
15
22
  s['foo'].should == 'bar'
@@ -1,10 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'rspec'
3
- require 'simplecov'
4
3
 
5
- SimpleCov.start
6
-
7
- Dir["./spec/support/**/*.rb"].each {|f| require f}
4
+ Dir["./spec/support/**/*.rb"].each {|f| require f}
8
5
 
9
6
  RSpec.configure do |config|
10
7
  config.mock_with :rspec do |mocks|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awestruct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6.beta9
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob McWhirter
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2015-07-24 00:00:00.000000000 Z
16
+ date: 2015-08-28 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  requirement: !ruby/object:Gem::Requirement
@@ -357,20 +357,6 @@ dependencies:
357
357
  - - ">="
358
358
  - !ruby/object:Gem::Version
359
359
  version: 4.3.2
360
- - !ruby/object:Gem::Dependency
361
- requirement: !ruby/object:Gem::Requirement
362
- requirements:
363
- - - "~>"
364
- - !ruby/object:Gem::Version
365
- version: '0.9'
366
- name: simplecov
367
- prerelease: false
368
- type: :development
369
- version_requirements: !ruby/object:Gem::Requirement
370
- requirements:
371
- - - "~>"
372
- - !ruby/object:Gem::Version
373
- version: '0.9'
374
360
  - !ruby/object:Gem::Dependency
375
361
  requirement: !ruby/object:Gem::Requirement
376
362
  requirements:
@@ -678,9 +664,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
678
664
  version: '0'
679
665
  required_rubygems_version: !ruby/object:Gem::Requirement
680
666
  requirements:
681
- - - ">"
667
+ - - ">="
682
668
  - !ruby/object:Gem::Version
683
- version: 1.3.1
669
+ version: '0'
684
670
  requirements:
685
671
  - |
686
672
  Any markup languages you are using and its dependencies.