bootswatch-sprockets 0.2.0.pre.beta.10 → 1.0.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.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.gitmodules +2 -2
  4. data/assets/stylesheets/bootswatch/cerulean/_variables.scss +380 -380
  5. data/assets/stylesheets/bootswatch/cosmo/_variables.scss +380 -380
  6. data/assets/stylesheets/bootswatch/custom/_variables.scss +380 -380
  7. data/assets/stylesheets/bootswatch/cyborg/_variables.scss +380 -380
  8. data/assets/stylesheets/bootswatch/darkly/_variables.scss +380 -380
  9. data/assets/stylesheets/bootswatch/flatly/_variables.scss +380 -380
  10. data/assets/stylesheets/bootswatch/journal/_variables.scss +380 -380
  11. data/assets/stylesheets/bootswatch/lumen/_variables.scss +380 -380
  12. data/assets/stylesheets/bootswatch/paper/_variables.scss +380 -380
  13. data/assets/stylesheets/bootswatch/readable/_variables.scss +380 -380
  14. data/assets/stylesheets/bootswatch/sandstone/_bootswatch.scss +0 -4
  15. data/assets/stylesheets/bootswatch/sandstone/_variables.scss +380 -380
  16. data/assets/stylesheets/bootswatch/simplex/_variables.scss +380 -380
  17. data/assets/stylesheets/bootswatch/slate/_variables.scss +380 -380
  18. data/assets/stylesheets/bootswatch/spacelab/_variables.scss +380 -380
  19. data/assets/stylesheets/bootswatch/superhero/_variables.scss +380 -380
  20. data/assets/stylesheets/bootswatch/united/_variables.scss +380 -380
  21. data/assets/stylesheets/bootswatch/yeti/_variables.scss +380 -380
  22. data/bootswatch_sprockets.gemspec +29 -2
  23. data/lib/bootswatch_sprockets.rb +1 -36
  24. data/lib/bootswatch_sprockets/version.rb +1 -1
  25. metadata +5 -5
  26. data/lib/bootswatch_sprockets/engine.rb +0 -9
@@ -25,8 +25,35 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
26
 
27
27
  spec.files += \
28
- Dir.glob("assets/**/*scss").reject do |filename|
29
- filename =~ /bower_components/
28
+ Dir.glob("vendor/bootswatch/**/*scss").reject do |filename|
29
+
30
+ filename =~ %r{^vendor/bootswatch/bower_components}
31
+
32
+ end.map do |scss_file|
33
+
34
+ target_path = scss_file.gsub(%r{^vendor/bootswatch/}, "assets/stylesheets/bootswatch/")
35
+
36
+ FileUtils.mkdir_p(File.dirname(target_path))
37
+
38
+ lines = File.readlines(scss_file).map do |line|
39
+ if line =~ /^\s*\$icon-font-path/
40
+ "// #{line}"
41
+ else
42
+ line
43
+ end
44
+ end.map do |line|
45
+ if line =~ /^\s*\$\S+:/
46
+ line.sub(';', ' !default;')
47
+ else
48
+ line
49
+ end
50
+ end
51
+
52
+ File.open(target_path, 'w') do |file|
53
+ file.write(lines.join)
54
+ end
55
+
56
+ target_path
30
57
  end
31
58
 
32
59
  end
@@ -1,40 +1,5 @@
1
1
  require "bootswatch_sprockets/version"
2
2
 
3
3
  module BootswatchSprockets
4
- class << self
5
-
6
- def load!
7
- register_rails_engine if rails?
8
- configure_sass
9
- end
10
-
11
- def rails?
12
- defined?(::Rails)
13
- end
14
-
15
- def stylesheets_path
16
- File.join(assets_path, 'stylesheets')
17
- end
18
-
19
- def gem_path
20
- @gem_path ||= File.expand_path('..', File.dirname(__FILE__))
21
- end
22
-
23
- def assets_path
24
- @assets_path ||= File.join(gem_path, 'assets')
25
- end
26
-
27
- def register_rails_engine
28
- # require 'sass-rails'
29
- require 'bootswatch_sprockets/engine'
30
- end
31
-
32
- def configure_sass
33
- require 'sass'
34
- ::Sass.load_paths << stylesheets_path
35
- end
36
-
37
- end
4
+ # Your code goes here...
38
5
  end
39
-
40
- BootswatchSprockets.load!
@@ -1,3 +1,3 @@
1
1
  module BootswatchSprockets
2
- VERSION = "0.2.0-beta.10"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootswatch-sprockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre.beta.10
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Schank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-07 00:00:00.000000000 Z
11
+ date: 2015-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-sass
@@ -79,6 +79,7 @@ files:
79
79
  - LICENSE.txt
80
80
  - README.md
81
81
  - Rakefile
82
+ - assets/stylesheets/bootswatch/.gitkeep
82
83
  - assets/stylesheets/bootswatch/cerulean/_bootswatch.scss
83
84
  - assets/stylesheets/bootswatch/cerulean/_variables.scss
84
85
  - assets/stylesheets/bootswatch/cosmo/_bootswatch.scss
@@ -116,7 +117,6 @@ files:
116
117
  - assets/stylesheets/bootswatch/yeti/_variables.scss
117
118
  - bootswatch_sprockets.gemspec
118
119
  - lib/bootswatch_sprockets.rb
119
- - lib/bootswatch_sprockets/engine.rb
120
120
  - lib/bootswatch_sprockets/version.rb
121
121
  homepage: https://github.com/DrTom/bootswatch-sprockets
122
122
  licenses:
@@ -133,9 +133,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">"
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 1.3.1
138
+ version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
141
  rubygems_version: 2.2.2
@@ -1,9 +0,0 @@
1
- module BootswatchSprockets
2
- class Engine < ::Rails::Engine
3
- initializer 'bootswatch_sprockets.assets.precompile' do |app|
4
- %w(stylesheets).each do |sub|
5
- app.config.assets.paths << root.join('assets', sub).to_s
6
- end
7
- end
8
- end
9
- end