locomotivecms_common 0.0.1 → 0.0.2
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 +4 -4
- data/.travis.yml +2 -1
- data/Gemfile.lock +3 -1
- data/Rakefile +2 -2
- data/lib/locomotive/common/exception.rb +0 -2
- data/lib/locomotive/common/logger.rb +3 -1
- data/lib/{plugins → locomotive/common/plugins}/notifier.rb +0 -0
- data/lib/locomotive/common/version.rb +1 -1
- data/lib/{common.rb → locomotive/common.rb} +6 -12
- data/locomotivecms_common.gemspec +2 -1
- data/spec/spec_helper.rb +2 -2
- metadata +20 -8
- data/bin/publish +0 -28
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b653c8442e005fcdf0e7e49dd0ebf03d93b62af5
|
|
4
|
+
data.tar.gz: 94b56771d8759cbbc9eda08476f8823d55a6689d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16d8e74ceb2fa4d930d992e50afe7db1bf3680b51c8176e4440966a38f3a3f595698ca70c0b2a6e9061ee99243d5c86fa2eddec22c2b5ab456fb9bf9ba6df220
|
|
7
|
+
data.tar.gz: f38624d72d1bef8fab06a4a0ad82968004d1e31bd87044c8cc36842acbc127603c128845c61f2760dd8ee87cbb7f62f90941fe4c338c55115d2523436798846a
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
|
@@ -5,11 +5,11 @@ require 'rake'
|
|
|
5
5
|
require 'rspec'
|
|
6
6
|
require 'rspec/core/rake_task'
|
|
7
7
|
|
|
8
|
-
require_relative 'lib/common'
|
|
8
|
+
require_relative 'lib/locomotive/common'
|
|
9
9
|
|
|
10
10
|
RSpec::Core::RakeTask.new('spec:all') do |spec|
|
|
11
11
|
spec.pattern = 'spec/**/*_spec.rb'
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
task spec: ['spec:all']
|
|
15
|
-
task default: :spec
|
|
15
|
+
task default: :spec
|
|
File without changes
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
require_relative '
|
|
2
|
-
require_relative '
|
|
3
|
-
require_relative '
|
|
4
|
-
require_relative '
|
|
5
|
-
|
|
6
|
-
require_relative 'locomotive/common/configuration'
|
|
7
|
-
|
|
8
|
-
begin
|
|
9
|
-
require 'pry'
|
|
10
|
-
rescue LoadError
|
|
11
|
-
end
|
|
1
|
+
require_relative 'common/version'
|
|
2
|
+
require_relative 'common/logger'
|
|
3
|
+
require_relative 'common/exception'
|
|
4
|
+
require_relative 'common/notifier'
|
|
5
|
+
require_relative 'common/configuration'
|
|
12
6
|
|
|
13
7
|
module Locomotive
|
|
14
8
|
module Common
|
|
@@ -28,4 +22,4 @@ module Locomotive
|
|
|
28
22
|
yield(configuration)
|
|
29
23
|
end
|
|
30
24
|
end
|
|
31
|
-
end
|
|
25
|
+
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require_relative 'lib/common'
|
|
1
|
+
require_relative 'lib/locomotive/common/version'
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = 'locomotivecms_common'
|
|
@@ -20,5 +20,6 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
spec.add_development_dependency 'rake', '~> 10.1'
|
|
21
21
|
spec.add_development_dependency 'rspec', '~> 2.14'
|
|
22
22
|
|
|
23
|
+
spec.add_dependency 'colorize'
|
|
23
24
|
spec.required_ruby_version = '~> 2.0'
|
|
24
25
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: locomotivecms_common
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Didier Lafforgue
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2014-
|
|
13
|
+
date: 2014-06-03 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bundler
|
|
@@ -54,13 +54,26 @@ dependencies:
|
|
|
54
54
|
- - "~>"
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
56
|
version: '2.14'
|
|
57
|
+
- !ruby/object:Gem::Dependency
|
|
58
|
+
name: colorize
|
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
|
60
|
+
requirements:
|
|
61
|
+
- - ">="
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: '0'
|
|
64
|
+
type: :runtime
|
|
65
|
+
prerelease: false
|
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
67
|
+
requirements:
|
|
68
|
+
- - ">="
|
|
69
|
+
- !ruby/object:Gem::Version
|
|
70
|
+
version: '0'
|
|
57
71
|
description: The LocomotiveCMS Common is a shared libraries package
|
|
58
72
|
email:
|
|
59
73
|
- did@locomotivecms.com
|
|
60
74
|
- arnaud@sellenet.fr
|
|
61
75
|
- joel.azemar@gmail.com
|
|
62
|
-
executables:
|
|
63
|
-
- publish
|
|
76
|
+
executables: []
|
|
64
77
|
extensions: []
|
|
65
78
|
extra_rdoc_files: []
|
|
66
79
|
files:
|
|
@@ -71,14 +84,13 @@ files:
|
|
|
71
84
|
- LICENSE.txt
|
|
72
85
|
- README.md
|
|
73
86
|
- Rakefile
|
|
74
|
-
-
|
|
75
|
-
- lib/common.rb
|
|
87
|
+
- lib/locomotive/common.rb
|
|
76
88
|
- lib/locomotive/common/configuration.rb
|
|
77
89
|
- lib/locomotive/common/exception.rb
|
|
78
90
|
- lib/locomotive/common/logger.rb
|
|
79
91
|
- lib/locomotive/common/notifier.rb
|
|
92
|
+
- lib/locomotive/common/plugins/notifier.rb
|
|
80
93
|
- lib/locomotive/common/version.rb
|
|
81
|
-
- lib/plugins/notifier.rb
|
|
82
94
|
- locomotivecms_common.gemspec
|
|
83
95
|
- spec/locomotive/exception_spec.rb
|
|
84
96
|
- spec/spec_helper.rb
|
|
@@ -102,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
102
114
|
version: '0'
|
|
103
115
|
requirements: []
|
|
104
116
|
rubyforge_project:
|
|
105
|
-
rubygems_version: 2.
|
|
117
|
+
rubygems_version: 2.2.2
|
|
106
118
|
signing_key:
|
|
107
119
|
specification_version: 4
|
|
108
120
|
summary: The LocomotiveCMS Common is a shared libraries package for all LocomotiveCMS
|
data/bin/publish
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require_relative '../lib/common'
|
|
4
|
-
|
|
5
|
-
# bin/publish
|
|
6
|
-
|
|
7
|
-
class Publish
|
|
8
|
-
|
|
9
|
-
def start
|
|
10
|
-
# if File.exists? '.ruby-version'
|
|
11
|
-
# cmd = <<-CMD
|
|
12
|
-
# rvm use `cat .ruby-version`@`cat .ruby-gemset` --create
|
|
13
|
-
# CMD
|
|
14
|
-
# system cmd
|
|
15
|
-
# end
|
|
16
|
-
# exit 1
|
|
17
|
-
|
|
18
|
-
system "bundle && bundle exec rspec"
|
|
19
|
-
system "gem build locomotivecms_common.gemspec"
|
|
20
|
-
system "git tag -a v#{Locomotive::Common::VERSION} -m 'version #{Locomotive::Common::VERSION}'"
|
|
21
|
-
system "git push --tags"
|
|
22
|
-
system "gem push locomotivecms_common-#{Locomotive::Common::VERSION}.gem"
|
|
23
|
-
system "git push origin master"
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
Publish.new.start
|