voluntary_translation 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.0 (March 22, 2014) ##
2
+
3
+ * Rails 4 upgrade.
4
+
1
5
  ## 0.0.1 (October 13, 2013) ##
2
6
 
3
7
  * Initial version.
data/MIT-LICENSE CHANGED
File without changes
data/README.rdoc CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  <% content_for(:javascript_includes) { javascript_include_tag 'voluntary_translation/stories' } %>
2
2
 
3
- <%= simple_form_for(@story, html: {class: 'form-vertical'}) do |f| %>
3
+ <%= simple_form_for(@story, as: :story, url: @story.new_record? ? stories_path : story_path(@story.becomes(Story)), html: {class: 'form-vertical'}) do |f| %>
4
4
  <%= render partial: 'shared/form/error_messages', locals: { resource: @story } %>
5
5
 
6
6
  <% unless @story.new_record? %>
@@ -1,4 +1,4 @@
1
- <%= simple_form_for(@story, html: {class: 'floating_form form-vertical'}) do |f| %>
1
+ <%= simple_form_for(@story, as: :story, url: story_path(@story.becomes(Story)), html: {class: 'floating_form form-vertical'}) do |f| %>
2
2
  <%= render partial: 'shared/form/error_messages', locals: { resource: @story } %>
3
3
  <% if step == :activate %>
4
4
  <input type="hidden" name="next_step" value="1"/>
@@ -0,0 +1,8 @@
1
+ en:
2
+ activerecord:
3
+ errors:
4
+ models:
5
+ story:
6
+ attributes:
7
+ base:
8
+ missing_columns: Missing at least 1 column.
File without changes
data/config/routes.rb CHANGED
File without changes
File without changes
File without changes
@@ -1,5 +1,9 @@
1
1
  module VoluntaryTranslation
2
2
  class Engine < ::Rails::Engine
3
3
  config.i18n.load_path += Dir[File.expand_path("../../../config/locales/**/*.{rb,yml}", __FILE__)]
4
+
5
+ config.to_prepare do
6
+ Voluntary::Navigation::Base.add_product('translation', 'workflow.user.products.translation.title')
7
+ end
4
8
  end
5
9
  end
@@ -1,3 +1,3 @@
1
1
  module VoluntaryTranslation
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voluntary_translation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-13 00:00:00.000000000 Z
12
+ date: 2014-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: voluntary
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - '='
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.1.0
21
+ version: 0.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - '='
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 0.1.0
29
+ version: 0.2.0
30
30
  description: Translation product for crowdsourcing engine voluntary.
31
31
  email:
32
32
  - gawlista@gmail.com
@@ -39,11 +39,12 @@ files:
39
39
  - app/models/product/translation/story.rb
40
40
  - app/models/product/translation/task.rb
41
41
  - app/models/product/translation.rb
42
+ - app/views/products/types/translation/stories/_form.html.erb
42
43
  - app/views/products/types/translation/stories/steps/_activate.html.erb
43
44
  - app/views/products/types/translation/stories/steps/_setup_tasks.html.erb
44
- - app/views/products/types/translation/stories/_form.html.erb
45
45
  - app/views/products/types/translation/workflow/tasks/_work_head.html.erb
46
46
  - config/locales/resources/product/translation/task/en.yml
47
+ - config/locales/resources/story/en.yml
47
48
  - config/locales/workflow/en.yml
48
49
  - config/routes.rb
49
50
  - db/migrate/20131006062915_add_translation_product.rb
@@ -69,7 +70,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
70
  version: '0'
70
71
  segments:
71
72
  - 0
72
- hash: 792462451
73
+ hash: 471193835094535036
73
74
  required_rubygems_version: !ruby/object:Gem::Requirement
74
75
  none: false
75
76
  requirements:
@@ -78,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
79
  version: '0'
79
80
  segments:
80
81
  - 0
81
- hash: 792462451
82
+ hash: 471193835094535036
82
83
  requirements: []
83
84
  rubyforge_project:
84
85
  rubygems_version: 1.8.23
@@ -86,3 +87,4 @@ signing_key:
86
87
  specification_version: 3
87
88
  summary: Translation product for crowdsourcing engine voluntary.
88
89
  test_files: []
90
+ has_rdoc: