phrasing 3.2.3 → 3.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bc454994cd3c64964e8d727ddec70f1f5d14d3b6
4
+ data.tar.gz: f98671cba114d1c1a384d637c45cca2782051053
5
+ SHA512:
6
+ metadata.gz: fed584391dc229399f7df23e618a72eee7f5fe3daad2d9e76613c4e31752b71b177f41b04378ee407abe020ff17e64223e0162ea67ec8b90aa7bdc5ed1c51b9c
7
+ data.tar.gz: 198c42e44ffc4e00b61cb1eee870be5c26edcac904b0eb0228c046b50c376c9c3dd5b38b28e04078ba688b16413701e16c70b286a6dc49df17facd64d51e399b
data/.gitignore CHANGED
@@ -1,4 +1,8 @@
1
1
  *.gem
2
2
  .ruby-version
3
+ spec/dummy/.sass-cache/
4
+ spec/dummy/db/development.sqlite3
5
+ spec/dummy/log/development.log
3
6
  spec/dummy/log/test.log
4
- tmp
7
+ tmp
8
+ Gemfile.lock
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ env:
5
+ - "RAILS_VERSION=3.2.0"
6
+ - "RAILS_VERSION=4.0.0"
7
+ - "RAILS_VERSION=4.1.0"
@@ -0,0 +1,34 @@
1
+ # Change Log
2
+
3
+ ## v3.2.4 (8th of May 2014)
4
+
5
+ Changed InlineHelper#phrasing_polymorphic_url to use rails path helper.
6
+
7
+ ## v3.2.3 (3rd of March 2014)
8
+
9
+ Exctracted import/export functionality to Phrasing::Serializer. Importer now accepts nested yaml files, just like the ones from /config/locales.
10
+
11
+ ## v3.2.2 (19th of February 2014)
12
+
13
+ Scope option for phrases added:
14
+
15
+ scope: 'homepage.footer' # add scopes just like you would w/ I18.n. If the first argument is 'test', than the key would be 'homepage.footer.test'
16
+
17
+ Change in generated migration file:
18
+
19
+ :phrasing_phrase_id changed from t.string to t.integer.
20
+
21
+ Change in PhrasingPhrasesController#index:
22
+
23
+ Fix order clause so it runs on Rails 3.2 and MySQL
24
+
25
+ ## v3.2.1 (29th of January 2014)
26
+
27
+ Created PhrasingPhrase.search_i18n_and_create_phrase for proper lookup of translations in config/locales.
28
+
29
+ ## v3.2.0 (16th of January 2014)
30
+
31
+ New design for edit mode bubble.
32
+
33
+ Non breaking IE9 javascript fix.
34
+
data/Gemfile CHANGED
@@ -3,6 +3,17 @@ source "https://rubygems.org"
3
3
 
4
4
  gemspec
5
5
 
6
+ rails_version = ENV["RAILS_VERSION"] || "default"
7
+
8
+ rails = case rails_version
9
+ when "default"
10
+ ">= 3.2.0"
11
+ else
12
+ "~> #{rails_version}"
13
+ end
14
+
15
+ gem "rails", rails
16
+
6
17
  gem 'factory_girl_rails'
7
18
  gem 'haml-rails'
8
19
  gem 'sqlite3'
data/README.md CHANGED
@@ -123,9 +123,9 @@ scope: 'homepage.footer' # add scopes just like you would w/ I18.n. If the first
123
123
  ## Credits
124
124
 
125
125
  Phrasing is maintained and sponsored by
126
- [Infinum](http://www.infinum.co).
126
+ [Infinum] (http://www.infinum.co).
127
127
 
128
- ![Infinum](http://www.infinum.co/system/logo.png)
128
+ ![Infinum](https://www.infinum.co/assets/logo_pic-2e19713f50692ed9b0805b199676c19a.png)
129
129
 
130
130
  Phrasing leverages parts of [Copycat](https://github.com/Zorros/copycat) and [ZenPen](https://github.com/tholman/zenpen/tree/master/).
131
131
 
@@ -54,8 +54,7 @@ module InlineHelper
54
54
  end
55
55
 
56
56
  def phrasing_polymorphic_url(record, attribute)
57
- resource = Phrasing.route
58
- "#{root_url}#{resource}/remote_update_phrase?klass=#{record.class.to_s}&id=#{record.id}&attribute=#{attribute}"
57
+ remote_update_phrase_phrasing_phrases_path(klass: record.class.to_s, id: record.id, attribute: attribute)
59
58
  end
60
59
 
61
- end
60
+ end
@@ -1,3 +1,3 @@
1
1
  module Phrasing
2
- VERSION = "3.2.3"
2
+ VERSION = "3.2.4"
3
3
  end
@@ -16,8 +16,8 @@ Gem::Specification.new do |s|
16
16
  s.files = `git ls-files`.split("\n")
17
17
  s.require_paths = ["lib"]
18
18
 
19
- s.add_dependency "rails", ">= 3.1.0"
20
- s.add_dependency "railties", ">= 3.1"
19
+ s.add_dependency "rails", ">= 3.2.0"
20
+ s.add_dependency "railties", ">= 3.2"
21
21
  s.add_dependency "haml-rails"
22
22
  s.add_dependency "jquery-rails"
23
23
  s.add_dependency "jquery-cookie-rails"
@@ -28,6 +28,7 @@ module Dummy
28
28
  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
29
29
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
30
30
  # config.i18n.default_locale = :de
31
+ config.i18n.enforce_available_locales = false
31
32
 
32
33
  # Configure the default encoding used in templates for Ruby 1.9.
33
34
  config.encoding = "utf-8"
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phrasing
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3
5
- prerelease:
4
+ version: 3.2.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tomislav Car
@@ -10,134 +9,118 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2014-03-03 00:00:00.000000000 Z
12
+ date: 2014-05-08 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rails
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
- version: 3.1.0
20
+ version: 3.2.0
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - '>='
29
26
  - !ruby/object:Gem::Version
30
- version: 3.1.0
27
+ version: 3.2.0
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: railties
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - '>='
37
33
  - !ruby/object:Gem::Version
38
- version: '3.1'
34
+ version: '3.2'
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - '>='
45
40
  - !ruby/object:Gem::Version
46
- version: '3.1'
41
+ version: '3.2'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: haml-rails
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ! '>='
46
+ - - '>='
53
47
  - !ruby/object:Gem::Version
54
48
  version: '0'
55
49
  type: :runtime
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ! '>='
53
+ - - '>='
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0'
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: jquery-rails
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
- - - ! '>='
60
+ - - '>='
69
61
  - !ruby/object:Gem::Version
70
62
  version: '0'
71
63
  type: :runtime
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
- - - ! '>='
67
+ - - '>='
77
68
  - !ruby/object:Gem::Version
78
69
  version: '0'
79
70
  - !ruby/object:Gem::Dependency
80
71
  name: jquery-cookie-rails
81
72
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
73
  requirements:
84
- - - ! '>='
74
+ - - '>='
85
75
  - !ruby/object:Gem::Version
86
76
  version: '0'
87
77
  type: :runtime
88
78
  prerelease: false
89
79
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
80
  requirements:
92
- - - ! '>='
81
+ - - '>='
93
82
  - !ruby/object:Gem::Version
94
83
  version: '0'
95
84
  - !ruby/object:Gem::Dependency
96
85
  name: sass
97
86
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
87
  requirements:
100
- - - ! '>='
88
+ - - '>='
101
89
  - !ruby/object:Gem::Version
102
90
  version: '0'
103
91
  type: :runtime
104
92
  prerelease: false
105
93
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
94
  requirements:
108
- - - ! '>='
95
+ - - '>='
109
96
  - !ruby/object:Gem::Version
110
97
  version: '0'
111
98
  - !ruby/object:Gem::Dependency
112
99
  name: pry-debugger
113
100
  requirement: !ruby/object:Gem::Requirement
114
- none: false
115
101
  requirements:
116
- - - ! '>='
102
+ - - '>='
117
103
  - !ruby/object:Gem::Version
118
104
  version: '0'
119
105
  type: :development
120
106
  prerelease: false
121
107
  version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
108
  requirements:
124
- - - ! '>='
109
+ - - '>='
125
110
  - !ruby/object:Gem::Version
126
111
  version: '0'
127
112
  - !ruby/object:Gem::Dependency
128
113
  name: jasmine-rails
129
114
  requirement: !ruby/object:Gem::Requirement
130
- none: false
131
115
  requirements:
132
- - - ! '>='
116
+ - - '>='
133
117
  - !ruby/object:Gem::Version
134
118
  version: '0'
135
119
  type: :development
136
120
  prerelease: false
137
121
  version_requirements: !ruby/object:Gem::Requirement
138
- none: false
139
122
  requirements:
140
- - - ! '>='
123
+ - - '>='
141
124
  - !ruby/object:Gem::Version
142
125
  version: '0'
143
126
  description: Phrasing!
@@ -147,8 +130,9 @@ extensions: []
147
130
  extra_rdoc_files: []
148
131
  files:
149
132
  - .gitignore
133
+ - .travis.yml
134
+ - CHANGELOG.md
150
135
  - Gemfile
151
- - Gemfile.lock
152
136
  - MIT-LICENSE
153
137
  - README.md
154
138
  - Rakefile
@@ -217,14 +201,11 @@ files:
217
201
  - spec/dummy/config/locales/en.yml
218
202
  - spec/dummy/config/routes.rb
219
203
  - spec/dummy/db/.gitkeep
220
- - spec/dummy/db/development.sqlite3
221
204
  - spec/dummy/db/migrate/20131120000855_create_phrasing_phrases.phrasing_rails_engine.rb
222
205
  - spec/dummy/db/migrate/20131120000856_create_phrasing_phrase_versions.phrasing_rails_engine.rb
223
206
  - spec/dummy/db/schema.rb
224
207
  - spec/dummy/db/test.sqlite3
225
208
  - spec/dummy/log/.gitkeep
226
- - spec/dummy/log/development.log
227
- - spec/dummy/log/test.log
228
209
  - spec/dummy/public/404.html
229
210
  - spec/dummy/public/422.html
230
211
  - spec/dummy/public/500.html
@@ -240,27 +221,25 @@ files:
240
221
  homepage: http://github.com/infinum/phrasing
241
222
  licenses:
242
223
  - MIT
224
+ metadata: {}
243
225
  post_install_message:
244
226
  rdoc_options: []
245
227
  require_paths:
246
228
  - lib
247
229
  required_ruby_version: !ruby/object:Gem::Requirement
248
- none: false
249
230
  requirements:
250
- - - ! '>='
231
+ - - '>='
251
232
  - !ruby/object:Gem::Version
252
233
  version: '0'
253
234
  required_rubygems_version: !ruby/object:Gem::Requirement
254
- none: false
255
235
  requirements:
256
- - - ! '>='
236
+ - - '>='
257
237
  - !ruby/object:Gem::Version
258
238
  version: '0'
259
239
  requirements: []
260
240
  rubyforge_project:
261
- rubygems_version: 1.8.23
241
+ rubygems_version: 2.0.3
262
242
  signing_key:
263
- specification_version: 3
243
+ specification_version: 4
264
244
  summary: Edit phrases inline for Rails applications!
265
245
  test_files: []
266
- has_rdoc:
@@ -1,164 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- phrasing (3.2.3)
5
- haml-rails
6
- jquery-cookie-rails
7
- jquery-rails
8
- rails (>= 3.1.0)
9
- railties (>= 3.1)
10
- sass
11
-
12
- GEM
13
- remote: https://rubygems.org/
14
- specs:
15
- actionmailer (4.0.0)
16
- actionpack (= 4.0.0)
17
- mail (~> 2.5.3)
18
- actionpack (4.0.0)
19
- activesupport (= 4.0.0)
20
- builder (~> 3.1.0)
21
- erubis (~> 2.7.0)
22
- rack (~> 1.5.2)
23
- rack-test (~> 0.6.2)
24
- activemodel (4.0.0)
25
- activesupport (= 4.0.0)
26
- builder (~> 3.1.0)
27
- activerecord (4.0.0)
28
- activemodel (= 4.0.0)
29
- activerecord-deprecated_finders (~> 1.0.2)
30
- activesupport (= 4.0.0)
31
- arel (~> 4.0.0)
32
- activerecord-deprecated_finders (1.0.3)
33
- activesupport (4.0.0)
34
- i18n (~> 0.6, >= 0.6.4)
35
- minitest (~> 4.2)
36
- multi_json (~> 1.3)
37
- thread_safe (~> 0.1)
38
- tzinfo (~> 0.3.37)
39
- arel (4.0.1)
40
- atomic (1.1.13)
41
- builder (3.1.4)
42
- capybara (2.2.1)
43
- mime-types (>= 1.16)
44
- nokogiri (>= 1.3.3)
45
- rack (>= 1.0.0)
46
- rack-test (>= 0.5.4)
47
- xpath (~> 2.0)
48
- coderay (1.1.0)
49
- columnize (0.3.6)
50
- debugger (1.6.5)
51
- columnize (>= 0.3.1)
52
- debugger-linecache (~> 1.2.0)
53
- debugger-ruby_core_source (~> 1.3.1)
54
- debugger-linecache (1.2.0)
55
- debugger-ruby_core_source (1.3.1)
56
- diff-lcs (1.2.5)
57
- erubis (2.7.0)
58
- factory_girl (4.3.0)
59
- activesupport (>= 3.0.0)
60
- factory_girl_rails (4.3.0)
61
- factory_girl (~> 4.3.0)
62
- railties (>= 3.0.0)
63
- haml (4.0.4)
64
- tilt
65
- haml-rails (0.4)
66
- actionpack (>= 3.1, < 4.1)
67
- activesupport (>= 3.1, < 4.1)
68
- haml (>= 3.1, < 4.1)
69
- railties (>= 3.1, < 4.1)
70
- hike (1.2.3)
71
- i18n (0.6.5)
72
- jasmine-core (1.3.1)
73
- jasmine-rails (0.5.6)
74
- jasmine-core (~> 1.3)
75
- phantomjs
76
- rails (>= 3.1.0)
77
- sprockets-rails
78
- jquery-cookie-rails (1.3.1.1)
79
- railties (>= 3.2.0, < 5.0)
80
- jquery-rails (3.1.0)
81
- railties (>= 3.0, < 5.0)
82
- thor (>= 0.14, < 2.0)
83
- mail (2.5.4)
84
- mime-types (~> 1.16)
85
- treetop (~> 1.4.8)
86
- method_source (0.8.2)
87
- mime-types (1.24)
88
- mini_portile (0.5.1)
89
- minitest (4.7.5)
90
- multi_json (1.7.9)
91
- nokogiri (1.6.0)
92
- mini_portile (~> 0.5.0)
93
- phantomjs (1.9.2.1)
94
- polyglot (0.3.3)
95
- pry (0.9.12.4)
96
- coderay (~> 1.0)
97
- method_source (~> 0.8)
98
- slop (~> 3.4)
99
- pry-debugger (0.2.2)
100
- debugger (~> 1.3)
101
- pry (~> 0.9.10)
102
- rack (1.5.2)
103
- rack-test (0.6.2)
104
- rack (>= 1.0)
105
- rails (4.0.0)
106
- actionmailer (= 4.0.0)
107
- actionpack (= 4.0.0)
108
- activerecord (= 4.0.0)
109
- activesupport (= 4.0.0)
110
- bundler (>= 1.3.0, < 2.0)
111
- railties (= 4.0.0)
112
- sprockets-rails (~> 2.0.0)
113
- railties (4.0.0)
114
- actionpack (= 4.0.0)
115
- activesupport (= 4.0.0)
116
- rake (>= 0.8.7)
117
- thor (>= 0.18.1, < 2.0)
118
- rake (10.1.0)
119
- rspec-core (2.14.7)
120
- rspec-expectations (2.14.4)
121
- diff-lcs (>= 1.1.3, < 2.0)
122
- rspec-mocks (2.14.4)
123
- rspec-rails (2.14.0)
124
- actionpack (>= 3.0)
125
- activesupport (>= 3.0)
126
- railties (>= 3.0)
127
- rspec-core (~> 2.14.0)
128
- rspec-expectations (~> 2.14.0)
129
- rspec-mocks (~> 2.14.0)
130
- sass (3.2.14)
131
- slop (3.4.7)
132
- sprockets (2.10.1)
133
- hike (~> 1.2)
134
- multi_json (~> 1.0)
135
- rack (~> 1.0)
136
- tilt (~> 1.1, != 1.3.0)
137
- sprockets-rails (2.0.1)
138
- actionpack (>= 3.0)
139
- activesupport (>= 3.0)
140
- sprockets (~> 2.8)
141
- sqlite3 (1.3.8)
142
- thor (0.18.1)
143
- thread_safe (0.1.2)
144
- atomic
145
- tilt (1.4.1)
146
- treetop (1.4.15)
147
- polyglot
148
- polyglot (>= 0.3.1)
149
- tzinfo (0.3.37)
150
- xpath (2.0.0)
151
- nokogiri (~> 1.3)
152
-
153
- PLATFORMS
154
- ruby
155
-
156
- DEPENDENCIES
157
- capybara (~> 2.2.0)
158
- factory_girl_rails
159
- haml-rails
160
- jasmine-rails
161
- phrasing!
162
- pry-debugger
163
- rspec-rails
164
- sqlite3