helio 0.0.1.5 → 0.1.6

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c025ebf763fee1b420aa2b50a642500d39c793c7
4
- data.tar.gz: 810e873ad741a051ce10defa2747386b050a12cc
3
+ metadata.gz: 8e73e3f6ef0e73d88b725bded18ad8679d94f245
4
+ data.tar.gz: 8b9bfc27a35f43a257498934aeec6eede089d65c
5
5
  SHA512:
6
- metadata.gz: 30bb2b0ffa3b51c01d6190eb50ffdedcd3d5f17185fe4dbb2af9b98c7d23aa4c650c92d2e5a7de15312b0b3b9921a5908a1a479c6c7b5dbbefeb34064682cf43
7
- data.tar.gz: dc7ec2a421b8d9ffd876192cbcaf1305249ec45f9f5743664b126afbac88782dcb7483ffc1c2a8efbde35b64cf6c962a2a54eca25e437317f2a4977c0e79755b
6
+ metadata.gz: d34da9b8ccc2de8fff4b099f69ff0a340ec508118a804d62d92066640b018fd9d1a25e42ea9b3b923a65ae056d55f493dea7af017b02f83c6bcb1d65dc985b75
7
+ data.tar.gz: 1f40cba9a6e3b0e24136e1d4d8696478d0dfb13a69f23b7a59a2726f78ffc2c58b53997e4ccebd163346f431fabe2027bc09466effd7e84748fd1e6e2e48a49b
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "helio-sass",
3
+ "homepage": "https://github.com/superjova/helio",
4
+ "authors": [
5
+ "Paul Jovanovic"
6
+ ],
7
+ "description": "helio",
8
+ "moduleType": "globals",
9
+ "main": [
10
+ "assets/stylesheets/_helio.scss"
11
+ ],
12
+ "keywords": [
13
+ "superjova",
14
+ "helio",
15
+ "sass"
16
+ ],
17
+ "license": "MIT",
18
+ "ignore": [
19
+ "**/.*",
20
+ "lib",
21
+ "tasks",
22
+ "templates",
23
+ "test",
24
+ "*.gemspec",
25
+ "Rakefile",
26
+ "Gemfile"
27
+ ]
28
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "superjova/helio",
3
+ "description": "helio",
4
+ "keywords": ["superjova", "helio", "sass"],
5
+ "homepage": "http://github.com/superjova/helio",
6
+ "authors": [
7
+ {
8
+ "name": "Paul Jovanovic"
9
+ }
10
+ ],
11
+ "support": {
12
+ "issues": "https://github.com/superjova/helio/issues"
13
+ },
14
+ "license": "MIT"
15
+ }
@@ -3,14 +3,67 @@ require 'helio/version'
3
3
  module Helio
4
4
  class << self
5
5
  def load!
6
- register_rails_engine
6
+ register_compass_extension if compass?
7
+
8
+ if rails?
9
+ register_rails_engine
10
+ elsif sprockets?
11
+ register_sprockets
12
+ end
13
+
14
+ configure_sass
15
+ end
16
+
17
+ def gem_path
18
+ @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
19
+ end
20
+
21
+ def stylesheets_path
22
+ File.join assets_path, 'stylesheets'
23
+ end
24
+
25
+ def assets_path
26
+ @assets_path ||= File.join gem_path, 'assets'
27
+ end
28
+
29
+ def sprockets?
30
+ defined?(::Sprockets)
31
+ end
32
+
33
+ def compass?
34
+ defined?(::Compass::Frameworks)
35
+ end
36
+
37
+ def rails?
38
+ defined?(::Rails)
7
39
  end
8
40
 
9
41
  private
10
42
 
43
+ def configure_sass
44
+ require 'sass'
45
+
46
+ ::Sass.load_paths << stylesheets_path
47
+ ::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max
48
+ end
49
+
50
+ def register_compass_extension
51
+ ::Compass::Frameworks.register(
52
+ 'helio',
53
+ :version => Helio::VERSION,
54
+ :path => gem_path,
55
+ :stylesheets_directory => stylesheets_path,
56
+ :templates_directory => File.join(gem_path, 'templates')
57
+ )
58
+ end
59
+
11
60
  def register_rails_engine
12
61
  require 'helio/engine'
13
62
  end
63
+
64
+ def register_sprockets
65
+ Sprockets.append_path(stylesheets_path)
66
+ end
14
67
  end
15
68
  end
16
69
 
@@ -1,3 +1,3 @@
1
1
  module Helio
2
- VERSION = '0.0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "helio-sass",
3
+ "version": "0.1.6",
4
+ "description": "helio",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git://github.com/superjova/helio"
8
+ },
9
+ "keywords": [
10
+ "helio",
11
+ "sass",
12
+ "css"
13
+ ],
14
+ "contributors": [
15
+ "Paul Jovanovic"
16
+ ],
17
+ "license": "MIT",
18
+ "bugs": {
19
+ "url": "https://github.com/superjova/helio/issues"
20
+ },
21
+ "devDependencies": {
22
+ "node-sass": "~2.0",
23
+ "mincer": "~1.2"
24
+ }
25
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Jovanovic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-25 00:00:00.000000000 Z
11
+ date: 2015-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -200,10 +200,13 @@ files:
200
200
  - assets/stylesheets/helio/_variables.scss
201
201
  - assets/stylesheets/helio/mixins/generators.scss
202
202
  - assets/stylesheets/helio/normalize.scss
203
+ - bower.json
204
+ - composer.json
203
205
  - helio.gemspec
204
206
  - lib/helio.rb
205
207
  - lib/helio/engine.rb
206
208
  - lib/helio/version.rb
209
+ - package.json
207
210
  - test/compilation_test.rb
208
211
  - test/dummy_rails/README.rdoc
209
212
  - test/dummy_rails/Rakefile