whowish_word 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -1
- data/.project +0 -1
- data/README.md +20 -26
- data/lib/whowish_word/action_controller/base.rb +15 -29
- data/lib/whowish_word/action_mailer/base.rb +3 -8
- data/lib/whowish_word/action_view/base.rb +52 -41
- data/lib/whowish_word/action_view/template.rb +18 -18
- data/lib/whowish_word/authentication.rb +9 -9
- data/lib/whowish_word/config.rb +1 -10
- data/lib/whowish_word/db_migration/active_record/whowish_word_html.rb +10 -10
- data/lib/whowish_word/db_migration/mongoid/whowish_word_html.rb +5 -5
- data/lib/whowish_word/initializer.rb +4 -4
- data/lib/whowish_word/rails/app/controllers/whowish_word_controller.rb +35 -26
- data/lib/whowish_word/rails/app/models/active_record/whowish_word_html.rb +2 -2
- data/lib/whowish_word/rails/app/models/mongoid/whowish_word_html.rb +6 -6
- data/lib/whowish_word/whowish_word.rb +17 -18
- data/rails/Gemfile +1 -2
- data/rails/Gemfile.lock +77 -75
- data/rails/app/assets/javascripts/home2.js +2 -0
- data/rails/app/assets/stylesheets/home2.css +4 -0
- data/rails/app/controllers/application_controller.rb +1 -1
- data/rails/app/controllers/home2_controller.rb +2 -0
- data/rails/app/helpers/home2_helper.rb +2 -0
- data/rails/app/views/home/index.html.erb +31 -30
- data/rails/app/views/home2/index.html.erb +4 -0
- data/rails/app/views/integration/attr.html.erb +1 -1
- data/rails/app/views/integration/index.html.erb +1 -1
- data/rails/app/views/integration/select.html.erb +1 -1
- data/rails/app/views/integration/value.html.erb +1 -1
- data/rails/config/application.rb +0 -2
- data/rails/config/initializers/whowish_word.rb +1 -1
- data/rails/config/locales/whowish_word/en.yml +4 -0
- data/rails/config/locales/whowish_word/jp.yml +4 -0
- data/rails/config/locales/whowish_word/th.yml +4 -0
- data/rails/spec/controllers/whowish_word_controller_spec.rb +2 -39
- data/rails/spec/integration/whowish_word_spec.rb +1 -16
- data/rails/spec/spec_helper.rb +1 -11
- data/spec/spec_helper.rb +2 -0
- data/whowish_word.gemspec +2 -2
- metadata +13 -81
- data/ISSUE.md +0 -93
- data/rails/spec/integration/whowish_word_generator_spec.rb +0 -140
- data/rails/spec/support/mongoid_helper.rb +0 -10
- data/spec/unit/word_for_attr_in_edit_mode_spec.rb +0 -44
- data/spec/unit/word_for_attr_spec.rb +0 -44
- data/spec/unit/word_for_in_edit_mode_spec.rb +0 -44
- data/spec/unit/word_for_spec.rb +0 -44
data/rails/Gemfile
CHANGED
data/rails/Gemfile.lock
CHANGED
@@ -1,118 +1,121 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
actionmailer (3.
|
5
|
-
actionpack (= 3.
|
6
|
-
mail (~> 2.
|
7
|
-
actionpack (3.
|
8
|
-
activemodel (= 3.
|
9
|
-
activesupport (= 3.
|
4
|
+
actionmailer (3.2.3)
|
5
|
+
actionpack (= 3.2.3)
|
6
|
+
mail (~> 2.4.4)
|
7
|
+
actionpack (3.2.3)
|
8
|
+
activemodel (= 3.2.3)
|
9
|
+
activesupport (= 3.2.3)
|
10
10
|
builder (~> 3.0.0)
|
11
11
|
erubis (~> 2.7.0)
|
12
|
-
|
13
|
-
rack (~> 1.
|
14
|
-
rack-cache (~> 1.
|
15
|
-
rack-mount (~> 0.8.2)
|
12
|
+
journey (~> 1.0.1)
|
13
|
+
rack (~> 1.4.0)
|
14
|
+
rack-cache (~> 1.2)
|
16
15
|
rack-test (~> 0.6.1)
|
17
|
-
sprockets (~> 2.
|
18
|
-
activemodel (3.
|
19
|
-
activesupport (= 3.
|
16
|
+
sprockets (~> 2.1.2)
|
17
|
+
activemodel (3.2.3)
|
18
|
+
activesupport (= 3.2.3)
|
20
19
|
builder (~> 3.0.0)
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
arel (~> 2.2.1)
|
20
|
+
activerecord (3.2.3)
|
21
|
+
activemodel (= 3.2.3)
|
22
|
+
activesupport (= 3.2.3)
|
23
|
+
arel (~> 3.0.2)
|
26
24
|
tzinfo (~> 0.3.29)
|
27
|
-
activeresource (3.
|
28
|
-
activemodel (= 3.
|
29
|
-
activesupport (= 3.
|
30
|
-
activesupport (3.
|
25
|
+
activeresource (3.2.3)
|
26
|
+
activemodel (= 3.2.3)
|
27
|
+
activesupport (= 3.2.3)
|
28
|
+
activesupport (3.2.3)
|
29
|
+
i18n (~> 0.6)
|
31
30
|
multi_json (~> 1.0)
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
addressable (2.2.8)
|
32
|
+
arel (3.0.2)
|
33
|
+
bson (1.6.4)
|
34
|
+
bson_ext (1.6.4)
|
35
|
+
bson (~> 1.6.4)
|
35
36
|
builder (3.0.0)
|
36
|
-
childprocess (0.2
|
37
|
+
childprocess (0.3.2)
|
37
38
|
ffi (~> 1.0.6)
|
38
39
|
diff-lcs (1.1.3)
|
39
40
|
erubis (2.7.0)
|
40
41
|
ffi (1.0.11)
|
41
42
|
hike (1.2.1)
|
42
43
|
i18n (0.6.0)
|
43
|
-
|
44
|
-
|
44
|
+
journey (1.0.4)
|
45
|
+
json (1.7.3)
|
46
|
+
libwebsocket (0.1.3)
|
47
|
+
addressable
|
48
|
+
mail (2.4.4)
|
45
49
|
i18n (>= 0.4.0)
|
46
50
|
mime-types (~> 1.16)
|
47
51
|
treetop (~> 1.4.8)
|
48
|
-
mime-types (1.
|
49
|
-
mongo (1.
|
50
|
-
bson (
|
51
|
-
mongoid (2.
|
52
|
+
mime-types (1.18)
|
53
|
+
mongo (1.6.2)
|
54
|
+
bson (~> 1.6.2)
|
55
|
+
mongoid (2.4.11)
|
52
56
|
activemodel (~> 3.1)
|
53
|
-
mongo (
|
57
|
+
mongo (<= 1.6.2)
|
54
58
|
tzinfo (~> 0.3.22)
|
55
|
-
multi_json (1.
|
59
|
+
multi_json (1.3.6)
|
56
60
|
polyglot (0.3.3)
|
57
|
-
rack (1.
|
58
|
-
rack-cache (1.
|
61
|
+
rack (1.4.1)
|
62
|
+
rack-cache (1.2)
|
59
63
|
rack (>= 0.4)
|
60
|
-
rack-mount (0.8.3)
|
61
|
-
rack (>= 1.0.0)
|
62
64
|
rack-ssl (1.3.2)
|
63
65
|
rack
|
64
66
|
rack-test (0.6.1)
|
65
67
|
rack (>= 1.0)
|
66
|
-
rails (3.
|
67
|
-
actionmailer (= 3.
|
68
|
-
actionpack (= 3.
|
69
|
-
activerecord (= 3.
|
70
|
-
activeresource (= 3.
|
71
|
-
activesupport (= 3.
|
68
|
+
rails (3.2.3)
|
69
|
+
actionmailer (= 3.2.3)
|
70
|
+
actionpack (= 3.2.3)
|
71
|
+
activerecord (= 3.2.3)
|
72
|
+
activeresource (= 3.2.3)
|
73
|
+
activesupport (= 3.2.3)
|
72
74
|
bundler (~> 1.0)
|
73
|
-
railties (= 3.
|
74
|
-
railties (3.
|
75
|
-
actionpack (= 3.
|
76
|
-
activesupport (= 3.
|
75
|
+
railties (= 3.2.3)
|
76
|
+
railties (3.2.3)
|
77
|
+
actionpack (= 3.2.3)
|
78
|
+
activesupport (= 3.2.3)
|
77
79
|
rack-ssl (~> 1.3.2)
|
78
80
|
rake (>= 0.8.7)
|
79
81
|
rdoc (~> 3.4)
|
80
82
|
thor (~> 0.14.6)
|
81
|
-
rake (0.
|
82
|
-
rdoc (3.
|
83
|
+
rake (0.9.2.2)
|
84
|
+
rdoc (3.12)
|
83
85
|
json (~> 1.4)
|
84
|
-
rspec (2.
|
85
|
-
rspec-core (~> 2.
|
86
|
-
rspec-expectations (~> 2.
|
87
|
-
rspec-mocks (~> 2.
|
88
|
-
rspec-core (2.
|
89
|
-
rspec-expectations (2.
|
90
|
-
diff-lcs (~> 1.1.
|
91
|
-
rspec-mocks (2.
|
92
|
-
rspec-rails (2.
|
93
|
-
actionpack (
|
94
|
-
activesupport (
|
95
|
-
railties (
|
96
|
-
rspec (~> 2.
|
97
|
-
rubyzip (0.9.
|
98
|
-
selenium-webdriver (2.
|
99
|
-
childprocess (>= 0.2.
|
100
|
-
ffi (~> 1.0
|
101
|
-
|
86
|
+
rspec (2.10.0)
|
87
|
+
rspec-core (~> 2.10.0)
|
88
|
+
rspec-expectations (~> 2.10.0)
|
89
|
+
rspec-mocks (~> 2.10.0)
|
90
|
+
rspec-core (2.10.1)
|
91
|
+
rspec-expectations (2.10.0)
|
92
|
+
diff-lcs (~> 1.1.3)
|
93
|
+
rspec-mocks (2.10.1)
|
94
|
+
rspec-rails (2.10.1)
|
95
|
+
actionpack (>= 3.0)
|
96
|
+
activesupport (>= 3.0)
|
97
|
+
railties (>= 3.0)
|
98
|
+
rspec (~> 2.10.0)
|
99
|
+
rubyzip (0.9.9)
|
100
|
+
selenium-webdriver (2.22.2)
|
101
|
+
childprocess (>= 0.2.5)
|
102
|
+
ffi (~> 1.0)
|
103
|
+
libwebsocket (~> 0.1.3)
|
104
|
+
multi_json (~> 1.0)
|
102
105
|
rubyzip
|
103
|
-
sprockets (2.
|
106
|
+
sprockets (2.1.3)
|
104
107
|
hike (~> 1.2)
|
105
108
|
rack (~> 1.0)
|
106
109
|
tilt (~> 1.1, != 1.3.0)
|
107
|
-
sqlite3 (1.3.
|
110
|
+
sqlite3 (1.3.6)
|
108
111
|
thor (0.14.6)
|
109
112
|
tilt (1.3.3)
|
110
113
|
treetop (1.4.10)
|
111
114
|
polyglot
|
112
115
|
polyglot (>= 0.3.1)
|
113
|
-
tzinfo (0.3.
|
114
|
-
watir-webdriver (0.
|
115
|
-
selenium-webdriver (>= 2.
|
116
|
+
tzinfo (0.3.33)
|
117
|
+
watir-webdriver (0.6.1)
|
118
|
+
selenium-webdriver (>= 2.18.0)
|
116
119
|
watir-webdriver-rails (0.0.7)
|
117
120
|
watir-webdriver
|
118
121
|
|
@@ -122,8 +125,7 @@ PLATFORMS
|
|
122
125
|
DEPENDENCIES
|
123
126
|
bson_ext
|
124
127
|
mongoid
|
125
|
-
rails
|
126
|
-
rake (= 0.8.7)
|
128
|
+
rails (= 3.2.3)
|
127
129
|
rspec-rails
|
128
130
|
sqlite3
|
129
131
|
watir-webdriver-rails
|
@@ -1,3 +1,4 @@
|
|
1
|
+
<%=I18n.locale%>
|
1
2
|
<a href="/home?locale=en">en</a><br/>
|
2
3
|
<a href="/home?locale=th">th</a><br/>
|
3
4
|
<a href="/home?locale=jp">jp</a>
|
@@ -20,62 +21,62 @@
|
|
20
21
|
%>
|
21
22
|
</span>
|
22
23
|
<span>
|
23
|
-
<b>Text: </b> <%=
|
24
|
+
<b>Text: </b> <%=t :text%>
|
24
25
|
</span>
|
25
26
|
<span>
|
26
27
|
<b>Bullet: </b> <ul>
|
27
|
-
<li><%=
|
28
|
-
<li><%=
|
28
|
+
<li><%=t :text1%></li>
|
29
|
+
<li><%=t :text2%></li>
|
29
30
|
</ul>
|
30
31
|
</span>
|
31
32
|
<span>
|
32
|
-
<b>Anchor: </b> <a href="#"><%=
|
33
|
+
<b>Anchor: </b> <a href="#"><%=t :text3%></a>
|
33
34
|
</span>
|
34
35
|
<span>
|
35
|
-
<b>Label: </b> <label for="some_textbox"><%=
|
36
|
+
<b>Label: </b> <label for="some_textbox"><%=ta :label_text%></label>
|
36
37
|
<input type="text" name="some_textbox">
|
37
38
|
</span>
|
38
39
|
<span>
|
39
|
-
<b>Textbox: </b> <input type="textbox" name="<%=
|
40
|
-
title="<%=
|
41
|
-
value="<%=
|
42
|
-
placeholder="<%=
|
40
|
+
<b>Textbox: </b> <input type="textbox" name="<%=Time.now.to_i%>_0"
|
41
|
+
title="<%=ta :textbox_title%>"
|
42
|
+
value="<%=ta :textbox_value%>"
|
43
|
+
placeholder="<%=ta :textbox_placeholder%>">
|
43
44
|
</span>
|
44
45
|
<span>
|
45
|
-
<b>Textarea: </b> <textarea name="<%=
|
46
|
-
title="<%=
|
47
|
-
placeholder="<%=
|
46
|
+
<b>Textarea: </b> <textarea name="<%=Time.now.to_i%>_1"
|
47
|
+
title="<%=ta :textarea_title%>"
|
48
|
+
placeholder="<%=ta :textarea_placeholder%>"><%=ta :textarea_value%></textarea>
|
48
49
|
</span>
|
49
50
|
<span>
|
50
|
-
<b>Checkbox: </b> <input type="checkbox" name="<%=
|
51
|
-
title="<%=
|
52
|
-
value="<%=
|
51
|
+
<b>Checkbox: </b> <input type="checkbox" name="<%=Time.now.to_i%>_2"
|
52
|
+
title="<%=ta :checkbox_title%>"
|
53
|
+
value="<%=ta :checkbox_value%>">
|
53
54
|
</span>
|
54
55
|
<span>
|
55
|
-
<b>Radio: </b> <input type="radio" name="<%=
|
56
|
-
title="<%=
|
57
|
-
value="<%=
|
56
|
+
<b>Radio: </b> <input type="radio" name="<%=Time.now.to_i%>_3"
|
57
|
+
title="<%=ta :radio_title%>"
|
58
|
+
value="<%=ta :radio_value%>">
|
58
59
|
</span>
|
59
60
|
<span>
|
60
|
-
<b>Select: </b> <select title="<%=
|
61
|
-
<option value="<%=
|
62
|
-
<option value="<%=
|
61
|
+
<b>Select: </b> <select title="<%=ta :select_title%>">
|
62
|
+
<option value="<%=ta :option_value_0%>"><%=ta :option_text_0%></option>
|
63
|
+
<option value="<%=ta :option_value_1%>"><%=ta :option_text_1%></option>
|
63
64
|
</select>
|
64
65
|
</span>
|
65
66
|
<span>
|
66
67
|
<b>Button(Input): </b> <input type="button"
|
67
|
-
title="<%=
|
68
|
-
value="<%=
|
68
|
+
title="<%=ta :input_button_title%>"
|
69
|
+
value="<%=ta :input_button_value%>"
|
69
70
|
onclick="alert('hello');">
|
70
71
|
</span>
|
71
72
|
<span>
|
72
73
|
<b>Submit(Input): </b> <input type="submit"
|
73
|
-
title="<%=
|
74
|
-
value="<%=
|
74
|
+
title="<%=ta :submit_title%>"
|
75
|
+
value="<%=ta :submit_value%>"
|
75
76
|
onclick="alert('hello');">
|
76
77
|
</span>
|
77
78
|
<span>
|
78
|
-
<b>Button: </b> <button title="<%=
|
79
|
+
<b>Button: </b> <button title="<%=ta :button_title%>" onclick="alert('hello');"><%=ta :button_value%></button>
|
79
80
|
</span>
|
80
81
|
<span>
|
81
82
|
<b>Late Text: </b> <span id="late_text"></span>
|
@@ -83,7 +84,7 @@
|
|
83
84
|
<script type="text/javascript">
|
84
85
|
|
85
86
|
setTimeout(function() {
|
86
|
-
$('#late_text').html("<%=
|
87
|
+
$('#late_text').html("<%=t :late_text%>");
|
87
88
|
},5000);
|
88
89
|
|
89
90
|
</script>
|
@@ -97,9 +98,9 @@
|
|
97
98
|
<script type="text/javascript">
|
98
99
|
|
99
100
|
setTimeout(function() {
|
100
|
-
$('#late_textbox').attr("title","<%=
|
101
|
-
$('#late_textbox').val("<%=
|
102
|
-
$('#late_textbox').attr("placeholder","<%=
|
101
|
+
$('#late_textbox').attr("title","<%=ta :late_textbox_title%>");
|
102
|
+
$('#late_textbox').val("<%=ta :late_textbox_value%>");
|
103
|
+
$('#late_textbox').attr("placeholder","<%=ta :late_textbox_placeholder%>");
|
103
104
|
},5000);
|
104
105
|
|
105
106
|
</script>
|
@@ -1 +1 @@
|
|
1
|
-
<input type="text" title="<%=
|
1
|
+
<input type="text" title="<%=ta :text%>">
|
@@ -1 +1 @@
|
|
1
|
-
<%=
|
1
|
+
<%=t :text%>
|
@@ -1 +1 @@
|
|
1
|
-
<input type="text" value="<%=
|
1
|
+
<input type="text" value="<%=ta :text%>">
|
data/rails/config/application.rb
CHANGED
@@ -20,11 +20,9 @@ Bundler.require(:default, $ORM_ENGINE, Rails.env) if defined?(Bundler)
|
|
20
20
|
module WhowishWordRails
|
21
21
|
|
22
22
|
class Application < Rails::Application
|
23
|
-
|
24
23
|
config.encoding = "utf-8"
|
25
24
|
config.filter_parameters += [:password]
|
26
25
|
config.active_support.deprecation = :stderr
|
27
|
-
|
28
26
|
end
|
29
27
|
|
30
28
|
end
|
@@ -1,10 +1,9 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe WhowishWordController do
|
4
|
-
|
5
4
|
it "adds a word correctly" do
|
6
5
|
|
7
|
-
word_id = "
|
6
|
+
word_id = "test"
|
8
7
|
content = "Hello"
|
9
8
|
|
10
9
|
post :change_word, {
|
@@ -15,42 +14,6 @@ describe WhowishWordController do
|
|
15
14
|
body = expect_json_response
|
16
15
|
body['ok'].should be_true
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
word = WhowishWordHtml.first(:conditions=>{:word_id=>word_id})
|
21
|
-
word.content.should == content
|
22
|
-
|
23
|
-
WhowishWord.words[word_id].should == content
|
24
|
-
WhowishWord.words.length.should == 1
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
it "changes a word correctly" do
|
29
|
-
|
30
|
-
word_id = "some_controller/some_view.html.erb:some_word(en)"
|
31
|
-
content = "Hello"
|
32
|
-
|
33
|
-
WhowishWord.add_or_set_word(word_id, content)
|
34
|
-
WhowishWordHtml.create(:word_id=>word_id, :content=>content)
|
35
|
-
|
36
|
-
new_content = "Yo!"
|
37
|
-
|
38
|
-
post :change_word, {
|
39
|
-
:word_id => word_id,
|
40
|
-
:content => new_content
|
41
|
-
}
|
42
|
-
|
43
|
-
body = expect_json_response
|
44
|
-
body['ok'].should be_true
|
45
|
-
|
46
|
-
commit_database
|
47
|
-
|
48
|
-
word = WhowishWordHtml.first(:conditions=>{:word_id=>word_id})
|
49
|
-
word.content.should == new_content
|
50
|
-
|
51
|
-
WhowishWord.words[word_id].should == new_content
|
52
|
-
WhowishWord.words.length.should == 1
|
53
|
-
|
17
|
+
I18n.t(word_id.to_sym).should == content
|
54
18
|
end
|
55
|
-
|
56
19
|
end
|
@@ -1,9 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe 'WhowishWord workflow spec' do
|
4
|
-
|
5
4
|
it "edits a normal text" do
|
6
|
-
|
7
5
|
goto '/integration?edit_mode=yes'
|
8
6
|
sleep(1)
|
9
7
|
|
@@ -14,7 +12,6 @@ describe 'WhowishWord workflow spec' do
|
|
14
12
|
|
15
13
|
html('whowishWordId0').should == "Some new word"
|
16
14
|
|
17
|
-
commit_database
|
18
15
|
|
19
16
|
goto '/integration?edit_mode=yes'
|
20
17
|
sleep(1)
|
@@ -23,11 +20,9 @@ describe 'WhowishWord workflow spec' do
|
|
23
20
|
|
24
21
|
click 'whowishWordId0_____html'
|
25
22
|
value("whowishWordDialogContent").should == "Some new word"
|
26
|
-
|
27
23
|
end
|
28
24
|
|
29
25
|
it "edits a value" do
|
30
|
-
|
31
26
|
goto '/integration/value?edit_mode=yes'
|
32
27
|
sleep(1)
|
33
28
|
|
@@ -38,7 +33,6 @@ describe 'WhowishWord workflow spec' do
|
|
38
33
|
|
39
34
|
value('whowishWordId0').should == "Some new word"
|
40
35
|
|
41
|
-
commit_database
|
42
36
|
|
43
37
|
goto '/integration/value?edit_mode=yes'
|
44
38
|
sleep(1)
|
@@ -47,11 +41,9 @@ describe 'WhowishWord workflow spec' do
|
|
47
41
|
|
48
42
|
click 'whowishWordId0_____value'
|
49
43
|
value("whowishWordDialogContent").should == "Some new word"
|
50
|
-
|
51
44
|
end
|
52
45
|
|
53
46
|
it "edits an attribute" do
|
54
|
-
|
55
47
|
goto '/integration/attr?edit_mode=yes'
|
56
48
|
sleep(1)
|
57
49
|
|
@@ -62,7 +54,6 @@ describe 'WhowishWord workflow spec' do
|
|
62
54
|
|
63
55
|
element(:id=>'whowishWordId0').attribute_value("title").should == "Some new word"
|
64
56
|
|
65
|
-
commit_database
|
66
57
|
|
67
58
|
goto '/integration/attr?edit_mode=yes'
|
68
59
|
|
@@ -70,11 +61,9 @@ describe 'WhowishWord workflow spec' do
|
|
70
61
|
|
71
62
|
click 'whowishWordId0_____title'
|
72
63
|
element(:id=>'whowishWordId0').attribute_value("title").should == "Some new word"
|
73
|
-
|
74
64
|
end
|
75
65
|
|
76
66
|
it "edits an option" do
|
77
|
-
|
78
67
|
goto '/integration/select?edit_mode=yes'
|
79
68
|
sleep(1)
|
80
69
|
|
@@ -93,9 +82,7 @@ describe 'WhowishWord workflow spec' do
|
|
93
82
|
click "whowishWordDialogSaveButton"
|
94
83
|
|
95
84
|
execute_script('return $("#whowishWordId0").text();').should == "Some new text"
|
96
|
-
|
97
|
-
|
98
|
-
commit_database
|
85
|
+
|
99
86
|
|
100
87
|
goto '/integration/select?edit_mode=yes'
|
101
88
|
sleep(1)
|
@@ -111,7 +98,5 @@ describe 'WhowishWord workflow spec' do
|
|
111
98
|
click 'whowishWordId0_____text'
|
112
99
|
value("whowishWordDialogContent").should == "Some new text"
|
113
100
|
click 'whowishWordDialogCloseButton'
|
114
|
-
|
115
101
|
end
|
116
|
-
|
117
102
|
end
|
data/rails/spec/spec_helper.rb
CHANGED
@@ -6,7 +6,6 @@ ENV["RAILS_ENV"] ||= 'test'
|
|
6
6
|
require File.expand_path("../../config/environment", __FILE__)
|
7
7
|
|
8
8
|
require 'rspec/rails'
|
9
|
-
|
10
9
|
require 'watir-webdriver-rails'
|
11
10
|
|
12
11
|
WatirWebdriverRails.host = "localhost"
|
@@ -14,20 +13,11 @@ WatirWebdriverRails.port = 57124
|
|
14
13
|
|
15
14
|
Dir[File.expand_path("../support/**/*.rb", __FILE__)].each {|f| require f}
|
16
15
|
|
17
|
-
|
18
16
|
RSpec.configure do |config|
|
19
|
-
|
20
17
|
config.include Browser
|
21
|
-
config.include MongoidHelper
|
22
18
|
config.include JsonRspecHelper
|
23
19
|
|
24
|
-
config.
|
25
|
-
|
26
|
-
WhowishWordHtml.delete_all
|
27
|
-
WhowishWord.words = {}
|
28
|
-
|
29
|
-
end
|
30
|
-
|
20
|
+
config.mock_with :rspec
|
31
21
|
end
|
32
22
|
|
33
23
|
|
data/spec/spec_helper.rb
CHANGED
data/whowish_word.gemspec
CHANGED
@@ -3,13 +3,13 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "whowish_word"
|
6
|
-
s.version = "0.
|
6
|
+
s.version = "0.4.0"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Tanin Na Nakorn"]
|
9
9
|
s.email = ["tanin47@yahoo.com"]
|
10
10
|
s.homepage = "http://github.com/tanin47/whowish_word"
|
11
11
|
s.summary = %q{WhowishWord}
|
12
|
-
s.description = %q{
|
12
|
+
s.description = %q{Inline internationlization for Rails 3.2.*}
|
13
13
|
|
14
14
|
s.rubyforge_project = "whowish_word"
|
15
15
|
|