mice 0.2.12 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +48 -40
- data/lib/mice.rb +78 -4
- data/lib/mice/engine.rb +4 -1
- data/lib/mice/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa6347ddfad814b8b97a9f59731239d33a6a98b1
|
4
|
+
data.tar.gz: 716da5888cf711f0c433dafdc4f5f68eba30aa65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 669a96de2af88eaee36b5be6de53ecc868f2793d6b3597f11a60edda0175c54ce75aae980dd79943b3c7f2fb0c64479c695b31e8cde508419cfcd71e80447d53
|
7
|
+
data.tar.gz: a3af1066b8ebd2270ac62af960a5cc5d8237bfa9d86b62e3ffadfa7ffdf1ab60c5e024d75c004dfa452abf7e3b720ae97c6b318f2eae2e6b10878dd8426e9236
|
data/Gemfile.lock
CHANGED
@@ -1,92 +1,100 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mice (0.2.
|
4
|
+
mice (0.2.14)
|
5
5
|
sass (~> 3.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (4.1.
|
10
|
+
activesupport (4.1.5)
|
11
11
|
i18n (~> 0.6, >= 0.6.9)
|
12
12
|
json (~> 1.7, >= 1.7.7)
|
13
13
|
minitest (~> 5.1)
|
14
14
|
thread_safe (~> 0.1)
|
15
15
|
tzinfo (~> 1.1)
|
16
|
+
celluloid (0.16.0)
|
17
|
+
timers (~> 4.0.0)
|
16
18
|
chunky_png (1.3.1)
|
17
|
-
coffee-script (2.
|
19
|
+
coffee-script (2.3.0)
|
18
20
|
coffee-script-source
|
19
21
|
execjs
|
20
|
-
coffee-script-source (1.
|
21
|
-
compass (0.
|
22
|
+
coffee-script-source (1.8.0)
|
23
|
+
compass (1.0.1)
|
22
24
|
chunky_png (~> 1.2)
|
23
|
-
|
24
|
-
|
25
|
-
|
25
|
+
compass-core (~> 1.0.1)
|
26
|
+
compass-import-once (~> 1.0.5)
|
27
|
+
rb-fsevent (>= 0.9.3)
|
28
|
+
rb-inotify (>= 0.9)
|
29
|
+
sass (>= 3.3.13, < 3.5)
|
30
|
+
compass-core (1.0.1)
|
31
|
+
multi_json (~> 1.0)
|
32
|
+
sass (>= 3.3.0, < 3.5)
|
33
|
+
compass-import-once (1.0.5)
|
26
34
|
sass (>= 3.2, < 3.5)
|
27
35
|
em-websocket (0.5.1)
|
28
36
|
eventmachine (>= 0.12.9)
|
29
37
|
http_parser.rb (~> 0.6.0)
|
30
38
|
erubis (2.7.0)
|
31
39
|
eventmachine (1.0.3)
|
32
|
-
execjs (2.1
|
40
|
+
execjs (2.2.1)
|
33
41
|
ffi (1.9.3)
|
34
|
-
fssm (0.2.10)
|
35
42
|
haml (4.0.5)
|
36
43
|
tilt
|
37
44
|
hike (1.2.3)
|
45
|
+
hitimes (1.2.2)
|
38
46
|
hooks (0.4.0)
|
39
47
|
uber (~> 0.0.4)
|
40
48
|
http_parser.rb (0.6.0)
|
41
|
-
i18n (0.6.
|
49
|
+
i18n (0.6.11)
|
42
50
|
json (1.8.1)
|
43
|
-
kramdown (1.
|
44
|
-
listen (
|
51
|
+
kramdown (1.4.1)
|
52
|
+
listen (2.7.9)
|
53
|
+
celluloid (>= 0.15.2)
|
45
54
|
rb-fsevent (>= 0.9.3)
|
46
55
|
rb-inotify (>= 0.9)
|
47
|
-
|
48
|
-
|
49
|
-
coffee-script (~> 2.2.0)
|
56
|
+
middleman (3.3.5)
|
57
|
+
coffee-script (~> 2.2)
|
50
58
|
compass (>= 0.12.4)
|
51
|
-
compass-import-once (= 1.0.
|
59
|
+
compass-import-once (= 1.0.5)
|
52
60
|
execjs (~> 2.0)
|
53
61
|
haml (>= 4.0.5)
|
54
62
|
kramdown (~> 1.2)
|
55
|
-
middleman-core (= 3.3.
|
63
|
+
middleman-core (= 3.3.5)
|
56
64
|
middleman-sprockets (>= 3.1.2)
|
57
65
|
sass (>= 3.2.17, < 4.0)
|
58
66
|
uglifier (~> 2.5)
|
59
|
-
middleman-core (3.3.
|
67
|
+
middleman-core (3.3.5)
|
60
68
|
activesupport (~> 4.1.0)
|
61
69
|
bundler (~> 1.1)
|
62
70
|
erubis
|
63
71
|
hooks (~> 0.3)
|
64
72
|
i18n (~> 0.6.9)
|
65
|
-
listen (
|
66
|
-
padrino-helpers (~> 0.12.
|
73
|
+
listen (>= 2.7.9, < 3.0)
|
74
|
+
padrino-helpers (~> 0.12.3)
|
67
75
|
rack (>= 1.4.5, < 2.0)
|
68
76
|
rack-test (~> 0.6.2)
|
69
77
|
thor (>= 0.15.2, < 2.0)
|
70
78
|
tilt (~> 1.4.1, < 2.0)
|
71
|
-
middleman-livereload (3.3.
|
79
|
+
middleman-livereload (3.3.4)
|
72
80
|
em-websocket (~> 0.5.1)
|
73
81
|
middleman-core (~> 3.2)
|
74
82
|
rack-livereload (~> 0.3.15)
|
75
|
-
middleman-sprockets (3.3.
|
76
|
-
middleman-core (
|
77
|
-
sprockets (~> 2.
|
83
|
+
middleman-sprockets (3.3.10)
|
84
|
+
middleman-core (~> 3.3)
|
85
|
+
sprockets (~> 2.12.1)
|
78
86
|
sprockets-helpers (~> 1.1.0)
|
79
|
-
sprockets-sass (~> 1.
|
87
|
+
sprockets-sass (~> 1.2.0)
|
80
88
|
middleman-syntax (2.0.0)
|
81
89
|
middleman-core (~> 3.2)
|
82
90
|
rouge (~> 1.0)
|
83
|
-
minitest (5.
|
91
|
+
minitest (5.4.1)
|
84
92
|
multi_json (1.10.1)
|
85
|
-
padrino-helpers (0.12.
|
93
|
+
padrino-helpers (0.12.3)
|
86
94
|
i18n (~> 0.6, >= 0.6.7)
|
87
|
-
padrino-support (= 0.12.
|
95
|
+
padrino-support (= 0.12.3)
|
88
96
|
tilt (~> 1.4.1)
|
89
|
-
padrino-support (0.12.
|
97
|
+
padrino-support (0.12.3)
|
90
98
|
activesupport (>= 3.1)
|
91
99
|
rack (1.5.2)
|
92
100
|
rack-livereload (0.3.15)
|
@@ -94,29 +102,29 @@ GEM
|
|
94
102
|
rack-test (0.6.2)
|
95
103
|
rack (>= 1.0)
|
96
104
|
rb-fsevent (0.9.4)
|
97
|
-
rb-inotify (0.9.
|
98
|
-
ffi (>= 0.5.0)
|
99
|
-
rb-kqueue (0.2.2)
|
105
|
+
rb-inotify (0.9.5)
|
100
106
|
ffi (>= 0.5.0)
|
101
|
-
rouge (1.
|
102
|
-
sass (3.
|
103
|
-
sprockets (2.12.
|
107
|
+
rouge (1.6.2)
|
108
|
+
sass (3.4.3)
|
109
|
+
sprockets (2.12.2)
|
104
110
|
hike (~> 1.2)
|
105
111
|
multi_json (~> 1.0)
|
106
112
|
rack (~> 1.0)
|
107
113
|
tilt (~> 1.1, != 1.3.0)
|
108
114
|
sprockets-helpers (1.1.0)
|
109
115
|
sprockets (~> 2.0)
|
110
|
-
sprockets-sass (1.
|
116
|
+
sprockets-sass (1.2.0)
|
111
117
|
sprockets (~> 2.0)
|
112
118
|
tilt (~> 1.1)
|
113
119
|
thor (0.19.1)
|
114
120
|
thread_safe (0.3.4)
|
115
121
|
tilt (1.4.1)
|
116
|
-
|
122
|
+
timers (4.0.0)
|
123
|
+
hitimes
|
124
|
+
tzinfo (1.2.2)
|
117
125
|
thread_safe (~> 0.1)
|
118
|
-
uber (0.0.
|
119
|
-
uglifier (2.5.
|
126
|
+
uber (0.0.8)
|
127
|
+
uglifier (2.5.3)
|
120
128
|
execjs (>= 0.3.0)
|
121
129
|
json (>= 1.8.0)
|
122
130
|
|
data/lib/mice.rb
CHANGED
@@ -1,18 +1,92 @@
|
|
1
1
|
require "mice/version"
|
2
2
|
|
3
|
+
# module Mice
|
4
|
+
# class << self
|
5
|
+
# # Inspired by Kaminari
|
6
|
+
# def load!
|
7
|
+
|
8
|
+
# if defined?(::Rails)
|
9
|
+
# require 'mice/engine'
|
10
|
+
# end
|
11
|
+
|
12
|
+
# end
|
13
|
+
|
14
|
+
# end
|
15
|
+
|
16
|
+
# end
|
17
|
+
|
18
|
+
# Mice.load!
|
19
|
+
|
3
20
|
module Mice
|
4
21
|
class << self
|
5
22
|
# Inspired by Kaminari
|
6
23
|
def load!
|
24
|
+
register_compass_extension if compass?
|
7
25
|
|
8
|
-
if
|
9
|
-
|
26
|
+
if rails?
|
27
|
+
register_rails_engine
|
10
28
|
end
|
11
29
|
|
30
|
+
configure_sass
|
12
31
|
end
|
13
32
|
|
14
|
-
|
33
|
+
# Paths
|
34
|
+
def gem_path
|
35
|
+
@gem_path ||= File.expand_path '..', File.dirname(__FILE__)
|
36
|
+
end
|
37
|
+
|
38
|
+
def stylesheets_path
|
39
|
+
File.join assets_path, 'stylesheets'
|
40
|
+
end
|
41
|
+
|
42
|
+
def fonts_path
|
43
|
+
File.join assets_path, 'fonts'
|
44
|
+
end
|
45
|
+
|
46
|
+
def javascripts_path
|
47
|
+
File.join assets_path, 'javascripts'
|
48
|
+
end
|
49
|
+
|
50
|
+
def assets_path
|
51
|
+
@assets_path ||= File.join gem_path, 'assets'
|
52
|
+
end
|
15
53
|
|
54
|
+
# Environment detection helpers
|
55
|
+
def asset_pipeline?
|
56
|
+
defined?(::Sprockets)
|
57
|
+
end
|
58
|
+
|
59
|
+
def compass?
|
60
|
+
defined?(::Compass)
|
61
|
+
end
|
62
|
+
|
63
|
+
def rails?
|
64
|
+
defined?(::Rails)
|
65
|
+
end
|
66
|
+
|
67
|
+
private
|
68
|
+
|
69
|
+
def configure_sass
|
70
|
+
require 'sass'
|
71
|
+
|
72
|
+
::Sass.load_paths << stylesheets_path
|
73
|
+
|
74
|
+
# https://github.com/twbs/bootstrap-sass/issues/409
|
75
|
+
::Sass::Script::Number.precision = [10, ::Sass::Script::Number.precision].max
|
76
|
+
end
|
77
|
+
|
78
|
+
def register_compass_extension
|
79
|
+
::Compass::Frameworks.register(
|
80
|
+
'mice',
|
81
|
+
:path => gem_path,
|
82
|
+
:stylesheets_directory => stylesheets_path
|
83
|
+
)
|
84
|
+
end
|
85
|
+
|
86
|
+
def register_rails_engine
|
87
|
+
require 'mice/engine'
|
88
|
+
end
|
89
|
+
end
|
16
90
|
end
|
17
91
|
|
18
|
-
Mice.load!
|
92
|
+
Mice.load!
|
data/lib/mice/engine.rb
CHANGED
@@ -2,7 +2,10 @@ module Mice
|
|
2
2
|
module Rails
|
3
3
|
class Engine < ::Rails::Engine
|
4
4
|
initializer "mice.assets.precompile" do |app|
|
5
|
-
|
5
|
+
%w(stylesheets javascripts fonts images).each do |sub|
|
6
|
+
app.config.assets.paths << root.join('assets', sub)
|
7
|
+
end
|
8
|
+
app.config.assets.precompile << %r(mice/fontawesome-webfont\.(?:eot|svg|ttf|woff)$)
|
6
9
|
end
|
7
10
|
end
|
8
11
|
end
|
data/lib/mice/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- miclle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|