usmu 1.4.2 → 1.4.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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60d614ebe06ed4fa6ba561980ddb6472b0c2747f
4
- data.tar.gz: 55b615b1a1acfb2beef865471d7e2ef4d564a89b
3
+ metadata.gz: b0c88ec6ba5b8a271859391560db4a5e8cc2291a
4
+ data.tar.gz: ed8cb596f45df692af2af0918a9922d40207cdfd
5
5
  SHA512:
6
- metadata.gz: b7a898a9d1672d58e6d825f4edeb1a0b07fe29f5cebc24ed933499e4f5ce6e70a5a52b01fad5f2e6cd629a9466503d59759aeee7182421e08268258b8358211e
7
- data.tar.gz: a290939d60b2fb1af58a620e5d907909060c3c904f4ce9a348a41717e04f8d475a394c010a0aac289ce0f9c6b81f069117b33735b35d82f16a8e0d02647562a5
6
+ metadata.gz: ee74fbc44b431509c347ad9701c4d70e44ea7324409cc738ef29b69159f46ca3f2c762275c596c201c59cc1d48c5b6193d3f73ac9520e1ec3eaeff079993bc97
7
+ data.tar.gz: 70b0723a7c21c742be92f1994255282f7ac873e0902a7b0caaca7143d86edc6dc0fc6e2f0809e4e05a52191d7b98e37bfecf71577b928618a1f18144a8dd79de
data/.travis.yml CHANGED
@@ -1,11 +1,20 @@
1
+ sudo: required
2
+ dist: trusty
3
+
1
4
  language: ruby
2
- before_install: gem update bundler
3
- install: bundle install --jobs 3 --retry 3 --without mutant
4
- script: rake ci
5
+ before_install:
6
+ # This was an attempt to get rbx working under trusty. Seems there's some sort of conflict with libssl going on.
7
+ #- sudo apt-get update && sudo apt-get install openssl libssl1.0.0 --yes
8
+ #- sudo apt-get --purge remove libssl1.0.0 --yes
9
+ #- sudo apt-get install libssl1.0.0 --yes
10
+ - gem install bundler
11
+ install: bundle install --jobs 3 --retry 3 --without mutant --path vendor/bundle
12
+ script: bundle exec rake ci
5
13
  rvm:
6
- - 2.0
7
- - 2.1
8
- - 2.2
14
+ - 2.3.0
15
+ - 2.2.4
16
+ - 2.1.8
17
+ - 2.0.0
9
18
  - ruby-head
10
19
  - rbx
11
20
  matrix:
@@ -17,8 +26,11 @@ matrix:
17
26
  allow_failures:
18
27
  - rvm: jruby
19
28
  - rvm: jruby-head
20
- - rvm: mruby-head
21
29
  - rvm: rbx
22
30
  addons:
23
31
  code_climate:
24
32
  repo_token: 5ac0735331c1749a461eae94f89cd2011cc001979f9941d7241f97caeff7bde1
33
+
34
+ cache:
35
+ directories:
36
+ - vendor
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Usmu Change Log
2
2
 
3
+ ## 1.4.3
4
+
5
+ Matthew Scharley <matt.scharley@gmail.com>
6
+
7
+ * Enable Trusty, disable hacks (0da41246c65c549cca881a86bead8b6106f99e1e)
8
+ * [\[#43\]][GH-43] Add a new indexor on Usmu.plugins to retrieve plugins of a specific type (49604cef8e1faa79eb38afd54bf883d1bacb447f)
9
+ * Update ruby version requirement. (3f5607280e035fb29e6097c4ccb8f5a633d27ea5)
10
+
11
+ [GH-43]: https://github.com/usmu/usmu/issues/43
12
+
3
13
  ## 1.4.2
4
14
 
5
15
  Matthew Scharley <matt.scharley@gmail.com>
@@ -28,6 +38,10 @@ Matthew Scharley <matt.scharley@gmail.com>
28
38
  * [\[#37\]][GH-37] Add SIGINT handling for usmu serve (d316570b5087270a2b3d54d7be9be58b0c0e0326)
29
39
  * [\[#35\]][GH-35] Don't cache SiteGenerators (13ca469c4f09c7be439d253eddc413f9210bd5bd)
30
40
 
41
+ [GH-35]: https://github.com/usmu/usmu/issues/35
42
+ [GH-36]: https://github.com/usmu/usmu/issues/36
43
+ [GH-37]: https://github.com/usmu/usmu/issues/37
44
+
31
45
  ## 1.2.2
32
46
 
33
47
  Matthew Scharley <matt.scharley@gmail.com>
data/lib/usmu/plugin.rb CHANGED
@@ -27,6 +27,10 @@ module Usmu
27
27
  @plugins ||= []
28
28
  end
29
29
 
30
+ def [](klass)
31
+ plugins.select {|s| s.class == klass }.first
32
+ end
33
+
30
34
  # Call all plugins and collate any data returned.
31
35
  #
32
36
  # nil can be returned explicitly to say this plugin has nothing to return.
data/lib/usmu/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Usmu
3
3
  # The current version string for the gem
4
- VERSION = '1.4.2'
4
+ VERSION = '1.4.3'
5
5
  end
@@ -46,4 +46,9 @@ RSpec.describe Usmu::Plugin do
46
46
 
47
47
  expect(plugins.invoke :test).to eq([['Goodbye world!']])
48
48
  end
49
+
50
+ it 'should be indexable to retrieve a plugin instance' do
51
+ plugins.load_plugins
52
+ expect(plugins[Usmu::MockPlugin].class).to eq(Usmu::MockPlugin)
53
+ end
49
54
  end
data/usmu.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.test_files = spec.files.grep(%r{^(test-site|spec)/})
22
22
  spec.require_paths = ['lib']
23
23
 
24
- spec.required_ruby_version = Gem::Requirement.new('>= 2.0')
24
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.0.0')
25
25
 
26
26
  spec.add_dependency 'slim', '~> 3.0'
27
27
  spec.add_dependency 'tilt', '~> 2.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usmu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Scharley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-02 00:00:00.000000000 Z
11
+ date: 2016-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slim
@@ -364,7 +364,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
364
364
  requirements:
365
365
  - - ">="
366
366
  - !ruby/object:Gem::Version
367
- version: '2.0'
367
+ version: 2.0.0
368
368
  required_rubygems_version: !ruby/object:Gem::Requirement
369
369
  requirements:
370
370
  - - ">="