wally 0.0.24 → 0.0.25

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Wally
2
2
  Wally is a web-based Cucumber viewer and navigator.
3
3
 
4
+ An example of Wally in action is at [bbc-wally.heroku.com](http://bbc-wally.heroku.com).
5
+
4
6
  ## About
5
7
  The first cut of a feature is collabatively written; but it then seems to become the property of developers, who commit it to a version control system.
6
8
 
@@ -2,20 +2,20 @@ $:.unshift(File.join(File.dirname(__FILE__)))
2
2
  require "sinatra"
3
3
  require "haml"
4
4
  require "rdiscount"
5
- require "mongoid"
5
+ require "mongo_mapper"
6
6
  require "wally/feature"
7
7
 
8
8
  configure do
9
9
  set :haml, { :ugly=>true }
10
- Mongoid.configure do |config|
11
- config.master = Mongo::Connection.new.db("wally")
12
- end
13
10
  end
14
11
 
15
- configure :test do
16
- Mongoid.configure do |config|
17
- config.master = Mongo::Connection.new.db("wally_test")
18
- end
12
+ if ENV['MONGOHQ_URL']
13
+ uri = URI.parse(ENV['MONGOHQ_URL'])
14
+ MongoMapper.connection = Mongo::Connection.from_uri(ENV['MONGOHQ_URL'])
15
+ MongoMapper.database = uri.path.gsub(/^\//, '')
16
+ else
17
+ MongoMapper.connection = Mongo::Connection.new('localhost')
18
+ MongoMapper.database = "wally"
19
19
  end
20
20
 
21
21
  def lists_features
@@ -70,7 +70,7 @@ end
70
70
 
71
71
  get '/features/:feature/?' do |feature|
72
72
  lists_features.features.each do |feature_hash|
73
- @feature = feature_hash if feature_hash["id"] == feature
73
+ @feature = feature_hash if feature_hash["id"] == feature
74
74
  end
75
75
  haml :feature
76
76
  end
data/lib/wally/feature.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  module Wally
2
2
  class Feature
3
- include Mongoid::Document
4
- field :path, :type => String
5
- field :content, :type => String
3
+ include MongoMapper::Document
4
+
5
+ key :path, String
6
+ key :content, String
6
7
  end
7
8
  end
data/lib/wally/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wally
2
- VERSION = "0.0.24"
2
+ VERSION = "0.0.25"
3
3
  end
@@ -1,12 +1,11 @@
1
1
  %h2
2
2
  Progress
3
- - #{@scenario_count}
4
3
  - if tag_count
5
4
  %p
6
- This project has #{@scenario_count} scenarios, of which :-
5
+ This project has #{scenario_count} scenarios, of which :-
7
6
  %ul{:class => 'chartlist'}
8
7
  - tag_count.each do |tag, count|
9
- - ratio = (count.to_f / @scenario_count) * 100
8
+ - ratio = (count.to_f / scenario_count) * 100
10
9
  %li
11
10
  %a{:href => "/search?q=#{tag}"}
12
11
  = "#{tag} (#{ratio.ceil}%)"
data/wally.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.add_runtime_dependency "rdiscount"
24
24
  s.add_runtime_dependency "gherkin"
25
25
  s.add_runtime_dependency "komainu"
26
- s.add_runtime_dependency "mongoid"
26
+ s.add_runtime_dependency "mongo_mapper"
27
27
  s.add_runtime_dependency "bson_ext"
28
28
  s.add_runtime_dependency "rest-client"
29
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wally
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.25
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-02 00:00:00.000000000Z
12
+ date: 2011-12-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
16
- requirement: &70108116103100 !ruby/object:Gem::Requirement
16
+ requirement: &70124892605360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70108116103100
24
+ version_requirements: *70124892605360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: haml
27
- requirement: &70108116102080 !ruby/object:Gem::Requirement
27
+ requirement: &70124892603680 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70108116102080
35
+ version_requirements: *70124892603680
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rdiscount
38
- requirement: &70108116101440 !ruby/object:Gem::Requirement
38
+ requirement: &70124892602380 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70108116101440
46
+ version_requirements: *70124892602380
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: gherkin
49
- requirement: &70108116100100 !ruby/object:Gem::Requirement
49
+ requirement: &70124892600960 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70108116100100
57
+ version_requirements: *70124892600960
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: komainu
60
- requirement: &70108116098780 !ruby/object:Gem::Requirement
60
+ requirement: &70124892599240 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70108116098780
68
+ version_requirements: *70124892599240
69
69
  - !ruby/object:Gem::Dependency
70
- name: mongoid
71
- requirement: &70108116096040 !ruby/object:Gem::Requirement
70
+ name: mongo_mapper
71
+ requirement: &70124892598020 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70108116096040
79
+ version_requirements: *70124892598020
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: bson_ext
82
- requirement: &70108116095560 !ruby/object:Gem::Requirement
82
+ requirement: &70124892595260 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70108116095560
90
+ version_requirements: *70124892595260
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rest-client
93
- requirement: &70108116095100 !ruby/object:Gem::Requirement
93
+ requirement: &70124892593820 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70108116095100
101
+ version_requirements: *70124892593820
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: cucumber
104
- requirement: &70108116094600 !ruby/object:Gem::Requirement
104
+ requirement: &70124892592280 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70108116094600
112
+ version_requirements: *70124892592280
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: capybara
115
- requirement: &70108116093920 !ruby/object:Gem::Requirement
115
+ requirement: &70124892589620 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70108116093920
123
+ version_requirements: *70124892589620
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: rspec
126
- requirement: &70108116093320 !ruby/object:Gem::Requirement
126
+ requirement: &70124892575200 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70108116093320
134
+ version_requirements: *70124892575200
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: fakefs
137
- requirement: &70108116086420 !ruby/object:Gem::Requirement
137
+ requirement: &70124892572020 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *70108116086420
145
+ version_requirements: *70124892572020
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: launchy
148
- requirement: &70108116085900 !ruby/object:Gem::Requirement
148
+ requirement: &70124892569620 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,7 +153,7 @@ dependencies:
153
153
  version: '0'
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *70108116085900
156
+ version_requirements: *70124892569620
157
157
  description: ''
158
158
  email:
159
159
  - andrew.vos@gmail.com