fontello_rails_converter 0.3.2 → 0.3.3

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.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- M2JkMWY1NzUzMjRkOGY1MGFmMDI0ZDc5MDY2Y2M2NDhkNTdhYjhiOQ==
5
- data.tar.gz: !binary |-
6
- NzJmZWNhNzU5NjcxNzAyY2I1ZWY4YzBjYWJhNGRmMDJkOTAzOTFmMQ==
2
+ SHA1:
3
+ metadata.gz: ed460adb0062827467818aa88c323b737238f047
4
+ data.tar.gz: 4af10b74d95726d2e4972958f4cabe9dfa4166d7
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZWNlMGVkMGVlOTEyNjgzMmY0Y2I3NDk5Njk4MzQ4ODI1NGJlYjgyMTFiOGZj
10
- YjI0ZTA2ZjAwZGE1Mjg4MWE5MmU2OWQyNmE4NmNjYjg1YTNmY2RmYThhZjJh
11
- Yjk3NWY3MGNlNmIzZWVhMzQ2NzNkZTQxMDAyMDM2OTQ0N2Q4Zjk=
12
- data.tar.gz: !binary |-
13
- NjMzNmI1MWNjNWNiZTE3ODBiYTNhM2E4ZDBmYTdiMzc0OWEyYjdhMTY4Nzlm
14
- NGJmMzdhOTYzMmMxYTE3ZGY0YzRkOWY0ZjBkOWEwNTQ3YWNjYmYyNGEwYzIy
15
- MmQ0MzljOTE2NWI3YTY0NmQwOGExZjE1NThlMmMyNWViY2YzY2M=
6
+ metadata.gz: acc0090ac6d515be18ab1c28b3dc828a435cf01f49cc8ebb8a6230a89ea96846a2955e9648fb68c27fe2502fa60f2b9618679a0823f1b409ea5d1235f95b5cc8
7
+ data.tar.gz: 6920544ddf6b184a0da78186cf0d0f33c40983ba6b290808fab4879a0bf84d60c0c384b264032cac6060178756ab07127a9b2f875cdf56b2d7e7b0ade17b618c
data/.travis.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
- - 2.0.0
4
+ - 2.2
5
+ bundler_args: --without development
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.3.3
2
+
3
+ * [improvement] changed default stylesheet file extension from `.css.scss` to `.scss` because of recent change in `sass-rails` (see #26)
4
+
1
5
  # 0.3.2
2
6
 
3
7
  * [bugfix] the `config.json` wasn't being copied anymore
data/Gemfile CHANGED
@@ -3,6 +3,15 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in fontello_rails_converter.gemspec
4
4
  gemspec
5
5
 
6
- gem 'rails-dummy'
7
- gem 'rails', '~> 4.0'
8
- gem 'sqlite3' # dummy app dependency
6
+ group :test do
7
+ gem 'rake'
8
+ gem 'rspec'
9
+ gem 'rails-dummy'
10
+ gem 'rails', '~> 4.0'
11
+ gem 'sqlite3' # dummy app dependency
12
+ end
13
+
14
+ group :development do
15
+ gem 'bundler', '>= 1.3'
16
+ gem 'pry-byebug'
17
+ end
data/README.md CHANGED
@@ -49,7 +49,6 @@ For more help run `fontello --help`
49
49
 
50
50
  Besides the main stylesheet (`fontname.css.scss`) fontello also provides a couple of additional stylesheets that you might want to `@import` in your app for special use cases: `fontname-ie7-codes.css.scss`, `fontname-embedded.css.scss`, `animation.css.scss`, `fontname-ie7.css.scss`, `fontname-codes.css.scss`
51
51
 
52
- ----
53
-
54
- [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/railslove/fontello_rails_converter/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
52
+ #### Gemfile environment
55
53
 
54
+ If you don't want to load this gem in your app's production environment to save a tiny bit of memory, you can also just add it to the `:development` group in your Gemfile. The only thing you might need to change is to tell rails to add `vendor/assets/fonts` to the precompile load paths see: https://github.com/railslove/fontello_rails_converter/blob/master/lib/fontello_rails_converter/railtie.rb
data/bin/fontello CHANGED
@@ -36,7 +36,7 @@ end
36
36
  # defaults
37
37
  options = {
38
38
  rails_root_dir: '.',
39
- stylesheet_extension: '.css.scss'
39
+ stylesheet_extension: '.scss'
40
40
  }
41
41
  set_options_based_on_rails_root(options)
42
42
  set_options_from_file(options)
@@ -69,7 +69,7 @@ OptionParser.new do |opts|
69
69
  options[:no_download] = true
70
70
  end
71
71
 
72
- opts.on("--stylesheet-extension", "Pick between e.g. '.css.scss' or '.scss'\n\n") do |opt|
72
+ opts.on("--stylesheet-extension [EXTENSION]", "Pick between e.g. '.css.scss' or '.scss'\n\n") do |opt|
73
73
  options[:stylesheet_extension] = opt
74
74
  end
75
75
 
@@ -21,9 +21,4 @@ Gem::Specification.new do |spec|
21
21
  spec.add_runtime_dependency "rubyzip", "~> 1.0"
22
22
  spec.add_runtime_dependency "launchy"
23
23
  spec.add_runtime_dependency "rest-client"
24
-
25
- spec.add_development_dependency "bundler", "~> 1.3"
26
- spec.add_development_dependency "rake"
27
- spec.add_development_dependency "rspec"
28
- spec.add_development_dependency "pry-debugger"
29
24
  end
@@ -67,7 +67,7 @@ module FontelloRailsConverter
67
67
  def convert_main_stylesheet(content)
68
68
  # asset URLs
69
69
  content.gsub! /\.\.\/font\//, ""
70
- content.gsub!(/url\(([^\(]+)\)/) { |m| "url(font-path(#{$1}))" }
70
+ content.gsub!(/url\(([^\(]+)\)/) { |m| "font-url(#{$1})" }
71
71
 
72
72
  # turn icon base class into placeholder selector
73
73
  content.gsub! /\[class\^="icon-[^\{]+{/m, "%icon-base {"
@@ -1,3 +1,3 @@
1
1
  module FontelloRailsConverter
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require 'rubygems'
2
2
  require 'bundler/setup'
3
- require 'pry-debugger'
4
3
 
5
4
  require 'fontello_rails_converter'
6
5
 
metadata CHANGED
@@ -1,111 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fontello_rails_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakob Hilden
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-07 00:00:00.000000000 Z
11
+ date: 2015-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: launchy
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rest-client
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: bundler
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: '1.3'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ~>
67
- - !ruby/object:Gem::Version
68
- version: '1.3'
69
- - !ruby/object:Gem::Dependency
70
- name: rake
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ! '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ! '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rspec
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ! '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ! '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: pry-debugger
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ! '>='
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ! '>='
52
+ - - ">="
109
53
  - !ruby/object:Gem::Version
110
54
  version: '0'
111
55
  description: Gem for opening up your current fontello font in the browser from the
@@ -118,9 +62,9 @@ executables:
118
62
  extensions: []
119
63
  extra_rdoc_files: []
120
64
  files:
121
- - .gitignore
122
- - .rspec
123
- - .travis.yml
65
+ - ".gitignore"
66
+ - ".rspec"
67
+ - ".travis.yml"
124
68
  - CHANGELOG.md
125
69
  - Gemfile
126
70
  - LICENSE.txt
@@ -193,17 +137,17 @@ require_paths:
193
137
  - lib
194
138
  required_ruby_version: !ruby/object:Gem::Requirement
195
139
  requirements:
196
- - - ! '>='
140
+ - - ">="
197
141
  - !ruby/object:Gem::Version
198
142
  version: '0'
199
143
  required_rubygems_version: !ruby/object:Gem::Requirement
200
144
  requirements:
201
- - - ! '>='
145
+ - - ">="
202
146
  - !ruby/object:Gem::Version
203
147
  version: '0'
204
148
  requirements: []
205
149
  rubyforge_project:
206
- rubygems_version: 2.1.9
150
+ rubygems_version: 2.2.2
207
151
  signing_key:
208
152
  specification_version: 4
209
153
  summary: CLI gem for comfortably working with custom icon fonts from fontello.com