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 +4 -4
- data/awestruct.gemspec +1 -2
- data/lib/awestruct/astruct.rb +4 -0
- data/lib/awestruct/cli/options.rb +2 -2
- data/lib/awestruct/version.rb +1 -1
- data/spec/awestruct/astruct_spec.rb +7 -0
- data/spec/spec_helper.rb +1 -4
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b14ea27426eef7dea8637b64067898a0aa0fcebb
|
4
|
+
data.tar.gz: f481a9b33a72d7e098055e373dbfbce8a058a580
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecc34b84694c4b5c81ab5ccdc8f5e0be17bf4ff80922f4c46874f6896a40dbd689ada792c1275229586050dbfe401b18f529f98252866e29a5af4977a1839404
|
7
|
+
data.tar.gz: 2d3d429ab37e94febfaba72cdfa8a0e40ec51619123b646712f2d3b6d7aeee7cf107993b4528fee4ca6a2dbb709b981810e915240f1784fade9d728ccb69acc0
|
data/awestruct.gemspec
CHANGED
@@ -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-
|
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
|
data/lib/awestruct/astruct.rb
CHANGED
@@ -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
|
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
|
data/lib/awestruct/version.rb
CHANGED
@@ -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'
|
data/spec/spec_helper.rb
CHANGED
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
|
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-
|
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:
|
669
|
+
version: '0'
|
684
670
|
requirements:
|
685
671
|
- |
|
686
672
|
Any markup languages you are using and its dependencies.
|