romo 0.14.1 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA512:
3
+ data.tar.gz: 92d4df34ecc7f8379335a668b5531aa2a3a4e9fab00d32fcea6e9c210e804ff0d6ca78a0ae124196e706563551d817e856115838fa518eae5c2efd77aae21cc8
4
+ metadata.gz: 499aefd895e2dded5bae1c6fe71b0c816d4e2404a699d91a0abedbe73ab6480211e0e3e90071e7aa5cefc93ed7ecb25d8a734fab0d544a710b67972a9a358e00
5
+ SHA1:
6
+ data.tar.gz: c4715f49bcd82b6280ace61ebfc35b59922cc990
7
+ metadata.gz: c4a5902a0e9b549ed2dc678c1b96267ae574b3fa
data/Gemfile CHANGED
@@ -2,7 +2,6 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'rake'
6
5
  gem 'pry', "~> 0.9.0"
7
6
 
8
7
  gem 'rack'
data/lib/romo/dassets.rb CHANGED
@@ -10,6 +10,8 @@ module Romo::Dassets
10
10
  # eventually would have a gem, "romo-dassets", do this or something
11
11
 
12
12
  def self.configure!
13
+ return if @configured
14
+
13
15
  Dassets.configure do |c|
14
16
  c.source Romo.gem_assets_path do |s|
15
17
  s.filter{ |paths| paths.reject{ |p| File.basename(p) =~ /^_/ } }
@@ -58,8 +60,11 @@ module Romo::Dassets
58
60
  'js/romo/indicator.js',
59
61
  'js/romo/sortable.js'
60
62
  ]
61
-
62
63
  end
64
+
65
+ @configured = true
63
66
  end
64
67
 
68
+ def self.reset!; @configured = false; end
69
+
65
70
  end
data/lib/romo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Romo
2
- VERSION = "0.14.1"
2
+ VERSION = "0.14.2"
3
3
  end
data/romo.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |gem|
8
8
  gem.version = Romo::VERSION
9
9
  gem.authors = ["Kelly Redding", "Collin Redding"]
10
10
  gem.email = ["kelly@kellyredding.com", "collin.redding@me.com"]
11
- gem.description = %q{A UI Toolkit}
12
11
  gem.summary = %q{A UI Toolkit}
12
+ gem.description = %q{A UI Toolkit}
13
13
  gem.homepage = "http://github.com/redding/romo"
14
14
  gem.license = 'MIT'
15
15
 
@@ -20,6 +20,6 @@ Gem::Specification.new do |gem|
20
20
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
21
21
  gem.require_paths = ["lib"]
22
22
 
23
- gem.add_development_dependency("assert", ["~> 2.15"])
23
+ gem.add_development_dependency("assert", ["~> 2.15.0"])
24
24
 
25
25
  end
@@ -11,6 +11,8 @@ module Romo::Dassets
11
11
  desc "Romo::Dassets"
12
12
  subject{ Romo::Dassets }
13
13
 
14
+ should have_imeths :configure!, :reset!
15
+
14
16
  should "configure Romo with Dassets" do
15
17
  subject.configure!
16
18
 
@@ -63,6 +65,24 @@ module Romo::Dassets
63
65
  assert_equal exp_js_sources, Dassets.config.combinations['js/romo.js']
64
66
  end
65
67
 
68
+ should "only configure itself once unless reset" do
69
+ subject.configure!
70
+ # modify the romo css so we can see that it isn't altered by calling
71
+ # configure again unless we call reset
72
+ Dassets.configure do |c|
73
+ c.combination "css/romo.css", []
74
+ end
75
+ assert_equal [], Dassets.config.combinations['css/romo.css']
76
+ subject.configure!
77
+ assert_equal [], Dassets.config.combinations['css/romo.css']
78
+
79
+ subject.reset!
80
+
81
+ assert_equal [], Dassets.config.combinations['css/romo.css']
82
+ subject.configure!
83
+ assert_not_equal [], Dassets.config.combinations['css/romo.css']
84
+ end
85
+
66
86
  end
67
87
 
68
88
  end
metadata CHANGED
@@ -1,13 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: romo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 37
5
- prerelease:
6
- segments:
7
- - 0
8
- - 14
9
- - 1
10
- version: 0.14.1
4
+ version: 0.14.2
11
5
  platform: ruby
12
6
  authors:
13
7
  - Kelly Redding
@@ -16,23 +10,18 @@ autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
12
 
19
- date: 2015-11-03 00:00:00 Z
13
+ date: 2016-01-11 00:00:00 Z
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
16
+ name: assert
17
+ prerelease: false
22
18
  requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
19
  requirements:
25
20
  - - ~>
26
21
  - !ruby/object:Gem::Version
27
- hash: 29
28
- segments:
29
- - 2
30
- - 15
31
- version: "2.15"
22
+ version: 2.15.0
32
23
  type: :development
33
- name: assert
34
24
  version_requirements: *id001
35
- prerelease: false
36
25
  description: A UI Toolkit
37
26
  email:
38
27
  - kelly@kellyredding.com
@@ -46,9 +35,8 @@ extra_rdoc_files: []
46
35
  files:
47
36
  - .gitignore
48
37
  - Gemfile
49
- - LICENSE.txt
38
+ - LICENSE
50
39
  - README.md
51
- - Rakefile
52
40
  - assets/css/romo/_mixins.scss
53
41
  - assets/css/romo/_vars.scss
54
42
  - assets/css/romo/base.scss
@@ -98,35 +86,28 @@ files:
98
86
  homepage: http://github.com/redding/romo
99
87
  licenses:
100
88
  - MIT
89
+ metadata: {}
90
+
101
91
  post_install_message:
102
92
  rdoc_options: []
103
93
 
104
94
  require_paths:
105
95
  - lib
106
96
  required_ruby_version: !ruby/object:Gem::Requirement
107
- none: false
108
97
  requirements:
109
- - - ">="
98
+ - &id002
99
+ - ">="
110
100
  - !ruby/object:Gem::Version
111
- hash: 3
112
- segments:
113
- - 0
114
101
  version: "0"
115
102
  required_rubygems_version: !ruby/object:Gem::Requirement
116
- none: false
117
103
  requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- hash: 3
121
- segments:
122
- - 0
123
- version: "0"
104
+ - *id002
124
105
  requirements: []
125
106
 
126
107
  rubyforge_project:
127
- rubygems_version: 1.8.29
108
+ rubygems_version: 2.5.1
128
109
  signing_key:
129
- specification_version: 3
110
+ specification_version: 4
130
111
  summary: A UI Toolkit
131
112
  test_files:
132
113
  - test/helper.rb
data/Rakefile DELETED
@@ -1 +0,0 @@
1
- require "bundler/gem_tasks"
File without changes