fix_spec 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +12 -12
- data/VERSION +1 -1
- data/fix_spec.gemspec +2 -2
- data/lib/fix_spec/data_dictionary.rb +2 -1
- data/spec/{data_dictionary_spec.rb → fix_spec/data_dictionary_spec.rb} +5 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -3,18 +3,18 @@ GEM
|
|
3
3
|
specs:
|
4
4
|
addressable (2.3.5)
|
5
5
|
builder (3.2.2)
|
6
|
-
cucumber (1.3.
|
6
|
+
cucumber (1.3.8)
|
7
7
|
builder (>= 2.1.2)
|
8
8
|
diff-lcs (>= 1.1.3)
|
9
|
-
gherkin (~> 2.12.
|
10
|
-
multi_json (
|
9
|
+
gherkin (~> 2.12.1)
|
10
|
+
multi_json (>= 1.7.5, < 2.0)
|
11
11
|
multi_test (>= 0.0.2)
|
12
12
|
cuke_mem (0.1.1)
|
13
13
|
cucumber (~> 1.3)
|
14
14
|
diff-lcs (1.2.4)
|
15
15
|
faraday (0.8.8)
|
16
16
|
multipart-post (~> 1.2.0)
|
17
|
-
gherkin (2.12.
|
17
|
+
gherkin (2.12.2-java)
|
18
18
|
multi_json (~> 1.3)
|
19
19
|
git (1.2.6)
|
20
20
|
github_api (0.10.1)
|
@@ -25,9 +25,9 @@ GEM
|
|
25
25
|
nokogiri (~> 1.5.2)
|
26
26
|
oauth2
|
27
27
|
hashie (2.0.5)
|
28
|
-
highline (1.6.
|
28
|
+
highline (1.6.20)
|
29
29
|
httpauth (0.2.0)
|
30
|
-
jeweler (1.8.
|
30
|
+
jeweler (1.8.8)
|
31
31
|
builder
|
32
32
|
bundler (~> 1.0)
|
33
33
|
git (>= 1.2.5)
|
@@ -36,13 +36,13 @@ GEM
|
|
36
36
|
nokogiri (= 1.5.10)
|
37
37
|
rake
|
38
38
|
rdoc
|
39
|
-
json (1.8.
|
39
|
+
json (1.8.1-java)
|
40
40
|
json_spec (1.1.1)
|
41
41
|
multi_json (~> 1.0)
|
42
42
|
rspec (~> 2.0)
|
43
43
|
jwt (0.1.8)
|
44
44
|
multi_json (>= 1.5)
|
45
|
-
multi_json (1.
|
45
|
+
multi_json (1.8.2)
|
46
46
|
multi_test (0.0.2)
|
47
47
|
multi_xml (0.5.5)
|
48
48
|
multipart-post (1.2.0)
|
@@ -54,7 +54,7 @@ GEM
|
|
54
54
|
multi_json (~> 1.0)
|
55
55
|
multi_xml (~> 0.5)
|
56
56
|
rack (~> 1.2)
|
57
|
-
quickfix-jruby (1.5.
|
57
|
+
quickfix-jruby (1.5.4-java)
|
58
58
|
rack (1.5.2)
|
59
59
|
rake (10.1.0)
|
60
60
|
rdoc (4.0.1)
|
@@ -63,10 +63,10 @@ GEM
|
|
63
63
|
rspec-core (~> 2.14.0)
|
64
64
|
rspec-expectations (~> 2.14.0)
|
65
65
|
rspec-mocks (~> 2.14.0)
|
66
|
-
rspec-core (2.14.
|
67
|
-
rspec-expectations (2.14.
|
66
|
+
rspec-core (2.14.6)
|
67
|
+
rspec-expectations (2.14.3)
|
68
68
|
diff-lcs (>= 1.1.3, < 2.0)
|
69
|
-
rspec-mocks (2.14.
|
69
|
+
rspec-mocks (2.14.4)
|
70
70
|
|
71
71
|
PLATFORMS
|
72
72
|
java
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/fix_spec.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "fix_spec"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Chris Busbey"]
|
@@ -48,7 +48,7 @@ Gem::Specification.new do |s|
|
|
48
48
|
"lib/fix_spec/matchers.rb",
|
49
49
|
"lib/fix_spec/matchers/be_fix_eql.rb",
|
50
50
|
"lib/fix_spec/matchers/have_fix_path.rb",
|
51
|
-
"spec/data_dictionary_spec.rb",
|
51
|
+
"spec/fix_spec/data_dictionary_spec.rb",
|
52
52
|
"spec/fix_spec/helpers_spec.rb",
|
53
53
|
"spec/spec_helper.rb"
|
54
54
|
]
|
@@ -7,7 +7,7 @@ module FIXSpec
|
|
7
7
|
|
8
8
|
def initialize fileName
|
9
9
|
super fileName
|
10
|
-
@reverse_lookup = Hash.new
|
10
|
+
@reverse_lookup = Hash.new
|
11
11
|
|
12
12
|
parse_xml(fileName)
|
13
13
|
end
|
@@ -26,6 +26,7 @@ module FIXSpec
|
|
26
26
|
doc = REXML::Document.new File.new(fileName)
|
27
27
|
doc.elements.each("fix/fields/field") do |f|
|
28
28
|
tag = f.attributes['number'].to_i
|
29
|
+
@reverse_lookup[tag]||={}
|
29
30
|
|
30
31
|
f.elements.each("value") do |v|
|
31
32
|
@reverse_lookup[ tag ][v.attributes['description'] ] = v.attributes['enum']
|
@@ -8,10 +8,14 @@ describe FIXSpec::DataDictionary do
|
|
8
8
|
end
|
9
9
|
|
10
10
|
describe "get_reverse_value_name" do
|
11
|
-
it "gives me back the same if not an enum" do
|
11
|
+
it "gives me back the same if not an enum or if we are giving an enum" do
|
12
12
|
dict.get_reverse_value_name(1, 'Ralph').should ==('Ralph')
|
13
13
|
end
|
14
14
|
|
15
|
+
it "gives me back the same if is an enum and no description matches" do
|
16
|
+
dict.get_reverse_value_name(39, 'D').should ==('D')
|
17
|
+
end
|
18
|
+
|
15
19
|
it "knows enum lookup" do
|
16
20
|
dict.get_reverse_value_name(54, 'BUY').should ==('1')
|
17
21
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: fix_spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Chris Busbey
|
@@ -162,7 +162,7 @@ files:
|
|
162
162
|
- lib/fix_spec/matchers.rb
|
163
163
|
- lib/fix_spec/matchers/be_fix_eql.rb
|
164
164
|
- lib/fix_spec/matchers/have_fix_path.rb
|
165
|
-
- spec/data_dictionary_spec.rb
|
165
|
+
- spec/fix_spec/data_dictionary_spec.rb
|
166
166
|
- spec/fix_spec/helpers_spec.rb
|
167
167
|
- spec/spec_helper.rb
|
168
168
|
homepage: http://github.com/connamara/fix_spec
|