phrasing 3.0.7 → 3.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -12,13 +12,17 @@ Include the gem in your Gemfile
12
12
  gem "phrasing"
13
13
  ```
14
14
 
15
- Run the install script:
15
+ Bundle the Gemfile
16
16
 
17
17
  ```ruby
18
- rake phrasing:install
18
+ bundle install
19
19
  ```
20
20
 
21
- This will create a migration file and a config file where you can edit the name of the route to see all the phrases.
21
+ Run the install script which will create a migration file and a config file.
22
+
23
+ ```ruby
24
+ rake phrasing:install
25
+ ```
22
26
 
23
27
  Migrate your database
24
28
  ```ruby
@@ -27,7 +31,9 @@ rake db:migrate
27
31
 
28
32
  ## Setup
29
33
 
30
- The rake task will also generate a PhrasingHelper.rb file in your <tt>app/helpers</tt> folder where you will need to implement your <tt>can_edit_phrases?</tt> method. Example:
34
+ The rake task will also generate <tt>phrasing_helper.rb</tt> in your <tt>app/helpers</tt> folder. Here you will need to implement the <tt>can_edit_phrases?</tt> method. Use this to hook-up your existing user authentication system to work with Phrasing.
35
+
36
+ For example:
31
37
 
32
38
  ```ruby
33
39
  module PhrasingHelper
@@ -38,19 +44,19 @@ module PhrasingHelper
38
44
 
39
45
  end
40
46
  ```
41
- Include the phrasing **html** initializer at the top of your body
47
+ Include the phrasing **html** initializer at the top of your application layout file.
42
48
 
43
49
  ```haml
44
50
  = render 'phrasing/initializer'
45
51
  ```
46
52
 
47
- Include the required **javascript** file (most often in your application.js file):
53
+ Include the required **javascript** file:
48
54
 
49
55
  ```javascript
50
56
  //= require phrasing
51
57
  ```
52
58
 
53
- Include the required **stylesheet** file (most often in your application.css file):
59
+ Include the required **stylesheet** file:
54
60
 
55
61
  ```css
56
62
  *= require phrasing
@@ -58,11 +64,11 @@ Include the required **stylesheet** file (most often in your application.css fil
58
64
 
59
65
  ## How to use phrasing?
60
66
 
61
- Start with adding your phrases simply by writting in your view file:
67
+ You can start adding new phrases by simply adding them in your view file:
62
68
 
63
69
  = phrase('my-first-phrase')
64
70
 
65
- Apart from editing phrases (basically, Rails translations) you can also inline edit your models attributes, just use the same `phrase` method, with the first attribute being the record and the second one the records attribute:
71
+ Aside from editing phrases (basically, Rails translations) you can also edit model attributes inline. Use the same `phrase` method, with the first attribute being the record in question, and the second one the attribute you wish to make editable:
66
72
 
67
73
  = phrase(@post, :title)
68
74
 
@@ -88,7 +94,7 @@ Phrasing.allow_update_on_all_models_and_attributes = true
88
94
 
89
95
  ## Upgrading from version 2.x to 3.x
90
96
 
91
- In versions 3.0.0 and above we have added the Phrasing Versioning System which requires an additional table, so if you are upgrading to a 3.x release, run <tt>rake phrasing:install</tt> to get the additional migration file, <tt>rake db:migrate</tt> and thats it.
97
+ In versions 3.0.0 and above we have added the Phrasing Versioning System which requires an additional table, so if you are upgrading to a 3.x release, run <tt>rake phrasing:install</tt> to get the additional migration file, then run <tt>rake db:migrate</tt>.
92
98
 
93
99
  ## Turbolinks
94
100
 
@@ -111,8 +117,15 @@ class: custom_class # add custom CSS classes to your phrases to change the appea
111
117
  interpolation: { %min: 10 } # add variables to your translations just like w/ I18n
112
118
  ```
113
119
 
114
- ## Authors
120
+ ## Credits
121
+
122
+ Phrasing is maintained and sponsored by
123
+ [Infinum](http://www.infinum.co).
124
+
125
+ ![Infinum](http://www.infinum.co/system/logo.png)
126
+
127
+ Phrasing leverages parts of [Copycat](https://github.com/Zorros/copycat) and [ZenPen](https://github.com/tholman/zenpen/tree/master/).
115
128
 
116
- Copyright (c) 2013, Infinum
129
+ ## License
117
130
 
118
- Phrasing relies heavily (or is built) on two other libraries: the [Copycat gem](https://github.com/Zorros/copycat) and the [ZenPen library](https://github.com/tholman/zenpen/tree/master/). So thank you to the authors and all the contributors!
131
+ Phrasing is Copyright © 2013 Infinum. It is free software, and may be redistributed under the terms specified in the LICENSE file.
@@ -115,7 +115,10 @@ span.no-overflow {
115
115
  -ms-transition: opacity 250ms, margin 250ms;
116
116
  -o-transition: opacity 250ms, margin 250ms;
117
117
  transition: opacity 250ms, margin 250ms;
118
-
118
+ *, *:before, *:after{
119
+ box-sizing: content-box;
120
+ -webkit-box-sizing: content-box;
121
+ }
119
122
  position: absolute;
120
123
  left: -999px;
121
124
  top: -999px;
@@ -181,6 +184,9 @@ span.no-overflow {
181
184
  .italic {
182
185
  font-style: italic;
183
186
  }
187
+ .bold, .italic{
188
+ line-height:normal;
189
+ }
184
190
 
185
191
  button {
186
192
  -webkit-transition: all 250ms ease-in-out;
@@ -1,3 +1,3 @@
1
1
  module Phrasing
2
- VERSION = "3.0.7"
2
+ VERSION = "3.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phrasing
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.7
4
+ version: 3.0.8
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Tomislav Car
@@ -9,90 +10,102 @@ authors:
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2013-12-11 00:00:00.000000000 Z
13
+ date: 2013-12-17 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: rails
16
17
  requirement: !ruby/object:Gem::Requirement
18
+ none: false
17
19
  requirements:
18
- - - '>='
20
+ - - ! '>='
19
21
  - !ruby/object:Gem::Version
20
22
  version: 3.1.0
21
23
  type: :runtime
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
24
27
  requirements:
25
- - - '>='
28
+ - - ! '>='
26
29
  - !ruby/object:Gem::Version
27
30
  version: 3.1.0
28
31
  - !ruby/object:Gem::Dependency
29
32
  name: railties
30
33
  requirement: !ruby/object:Gem::Requirement
34
+ none: false
31
35
  requirements:
32
- - - '>='
36
+ - - ! '>='
33
37
  - !ruby/object:Gem::Version
34
38
  version: '3.1'
35
39
  type: :runtime
36
40
  prerelease: false
37
41
  version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
38
43
  requirements:
39
- - - '>='
44
+ - - ! '>='
40
45
  - !ruby/object:Gem::Version
41
46
  version: '3.1'
42
47
  - !ruby/object:Gem::Dependency
43
48
  name: haml-rails
44
49
  requirement: !ruby/object:Gem::Requirement
50
+ none: false
45
51
  requirements:
46
- - - '>='
52
+ - - ! '>='
47
53
  - !ruby/object:Gem::Version
48
54
  version: '0'
49
55
  type: :runtime
50
56
  prerelease: false
51
57
  version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
52
59
  requirements:
53
- - - '>='
60
+ - - ! '>='
54
61
  - !ruby/object:Gem::Version
55
62
  version: '0'
56
63
  - !ruby/object:Gem::Dependency
57
64
  name: jquery-rails
58
65
  requirement: !ruby/object:Gem::Requirement
66
+ none: false
59
67
  requirements:
60
- - - '>='
68
+ - - ! '>='
61
69
  - !ruby/object:Gem::Version
62
70
  version: '0'
63
71
  type: :runtime
64
72
  prerelease: false
65
73
  version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
66
75
  requirements:
67
- - - '>='
76
+ - - ! '>='
68
77
  - !ruby/object:Gem::Version
69
78
  version: '0'
70
79
  - !ruby/object:Gem::Dependency
71
80
  name: jquery-cookie-rails
72
81
  requirement: !ruby/object:Gem::Requirement
82
+ none: false
73
83
  requirements:
74
- - - '>='
84
+ - - ! '>='
75
85
  - !ruby/object:Gem::Version
76
86
  version: '0'
77
87
  type: :runtime
78
88
  prerelease: false
79
89
  version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
80
91
  requirements:
81
- - - '>='
92
+ - - ! '>='
82
93
  - !ruby/object:Gem::Version
83
94
  version: '0'
84
95
  - !ruby/object:Gem::Dependency
85
96
  name: sass
86
97
  requirement: !ruby/object:Gem::Requirement
98
+ none: false
87
99
  requirements:
88
- - - '>='
100
+ - - ! '>='
89
101
  - !ruby/object:Gem::Version
90
102
  version: '0'
91
103
  type: :runtime
92
104
  prerelease: false
93
105
  version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
94
107
  requirements:
95
- - - '>='
108
+ - - ! '>='
96
109
  - !ruby/object:Gem::Version
97
110
  version: '0'
98
111
  description: Phrasing!
@@ -210,25 +223,26 @@ files:
210
223
  homepage: http://github.com/infinum/phrasing
211
224
  licenses:
212
225
  - MIT
213
- metadata: {}
214
226
  post_install_message:
215
227
  rdoc_options: []
216
228
  require_paths:
217
229
  - lib
218
230
  required_ruby_version: !ruby/object:Gem::Requirement
231
+ none: false
219
232
  requirements:
220
- - - '>='
233
+ - - ! '>='
221
234
  - !ruby/object:Gem::Version
222
235
  version: '0'
223
236
  required_rubygems_version: !ruby/object:Gem::Requirement
237
+ none: false
224
238
  requirements:
225
- - - '>='
239
+ - - ! '>='
226
240
  - !ruby/object:Gem::Version
227
241
  version: '0'
228
242
  requirements: []
229
243
  rubyforge_project:
230
- rubygems_version: 2.0.3
244
+ rubygems_version: 1.8.23
231
245
  signing_key:
232
- specification_version: 4
246
+ specification_version: 3
233
247
  summary: Edit phrases inline for Rails applications!
234
248
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 6bce69927075c3a7c3bd243e6ff7994111e4ee03
4
- data.tar.gz: 1c41f61d272fc346159a3b019d903cf7cead5d45
5
- SHA512:
6
- metadata.gz: d58ab7fc374bf419e1d6f954c678207fa041e8487541b8028ec1b5c3c7e3f755b17a281c0475de0fab14c0b9fccf6debe08942e2711d46d00b160986726f54e3
7
- data.tar.gz: 8e1d806b376d0bb7e4b29a42b7cdc24e6c46f6d32b2ecfc43fec142b1c4f7b277791f1cf7504bc2ae54f627003a0d1d62f16413e951b73f8bd3b3c2fead2e597