comable 0.4.1 → 0.4.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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/COMABLE_VERSION +1 -1
  3. data/README.md +4 -4
  4. data/Rakefile +9 -8
  5. data/lib/comable.rb +1 -0
  6. metadata +24 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4ae25532bc3ae7c5e4eb168d0764f09999992a4
4
- data.tar.gz: 3a980ec233b876fa5b9e2a7a1c0f8af38926d8b1
3
+ metadata.gz: 28e3b53d27ac1fdee594902db76f80057bdbc33e
4
+ data.tar.gz: c2ea704b35d0e062a7cd1a07edbeb73dcc84d480
5
5
  SHA512:
6
- metadata.gz: 7504b7703d4a0a6f7d11ae3015c143db8529d279b34607c20a6b1ab8e6315795d171fcb42dc46a6adfc7ff41cb13b1431048104e6ddac290e1271aa87e46df37
7
- data.tar.gz: 45fbb386d7a9b9c81c4a97f6f1ef2114e12decf41b7da6eeac5a966fa94ce74491e23b610b214e9d060df5f26de5adfa8e6906ce13a29910a98fecd06f5d2254
6
+ metadata.gz: 22827b3ce01ad468b02f1ca476deab6e3860f1e299270140cc1b518773622cd447d92f41a3239d736dfaef827c00f9f66298a8af45678909df734f6e6962dbf9
7
+ data.tar.gz: 6286d194f6503f1c2be5cb00c7e4940ff3fd4138c8659cec18ea98f0408dc544bcae56e76cb4356a8a531ec2b1704381343985f6ced4923f961c965a97dfc19b
data/COMABLE_VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Comable
2
2
 
3
- [![Build Status](https://img.shields.io/travis/hyoshida/comable.svg?style=flat-square)](http://travis-ci.org/hyoshida/comable)
4
- [![Code Climate](https://img.shields.io/codeclimate/github/hyoshida/comable.svg?style=flat-square)](https://codeclimate.com/github/hyoshida/comable)
5
- [![Coverage Status](https://img.shields.io/coveralls/hyoshida/comable.svg?style=flat-square)](https://coveralls.io/r/hyoshida/comable)
6
- [![Dependency Status](https://img.shields.io/gemnasium/hyoshida/comable.svg?style=flat-square)](https://gemnasium.com/hyoshida/comable)
3
+ [![Build Status](https://img.shields.io/travis/appirits/comable.svg?style=flat-square)](http://travis-ci.org/appirits/comable)
4
+ [![Code Climate](https://img.shields.io/codeclimate/github/appirits/comable.svg?style=flat-square)](https://codeclimate.com/github/appirits/comable)
5
+ [![Coverage Status](https://img.shields.io/coveralls/appirits/comable.svg?style=flat-square)](https://coveralls.io/r/appirits/comable)
6
+ [![Dependency Status](https://img.shields.io/gemnasium/appirits/comable.svg?style=flat-square)](https://gemnasium.com/appirits/comable)
7
7
  [![Gem Version](https://img.shields.io/gem/v/comable.svg?style=flat-square)](https://rubygems.org/gems/comable)
8
8
 
9
9
  Comable provides a simple way to add e-commerce features to your Ruby on Rails application.
data/Rakefile CHANGED
@@ -16,6 +16,11 @@ end
16
16
  APP_RAKEFILE = File.expand_path('../spec/dummy/Rakefile', __FILE__)
17
17
  load 'rails/tasks/engine.rake'
18
18
 
19
+ def command(string)
20
+ puts string
21
+ system string
22
+ end
23
+
19
24
  if File.exist?('comable.gemspec')
20
25
  $LOAD_PATH.unshift File.expand_path('..', __FILE__)
21
26
  require 'tasks/release'
@@ -45,9 +50,7 @@ if File.exist?('comable.gemspec')
45
50
  namespace :migrate do
46
51
  task :all do
47
52
  FRAMEWORKS.each do |framework|
48
- command = "cd #{framework} && test -d db && bundle exec rake db:migrate RAILS_ENV=#{Rails.env}"
49
- puts command
50
- system command
53
+ command "cd #{framework} && test -d db/migrate && bundle exec rake db:migrate RAILS_ENV=#{Rails.env}"
51
54
  end
52
55
  end
53
56
  end
@@ -59,11 +62,8 @@ if File.exist?('comable.gemspec')
59
62
 
60
63
  namespace :reset do
61
64
  task :all do
62
- FRAMEWORKS.each do |framework|
63
- command = "cd #{framework} && test -d db && bundle exec rake db:migrate:reset RAILS_ENV=#{Rails.env}"
64
- puts command
65
- system command
66
- end
65
+ command "bundle exec rake db:drop db:create RAILS_ENV=#{Rails.env}"
66
+ Rake::Task['db:migrate'].invoke
67
67
  end
68
68
  end
69
69
  end
@@ -90,6 +90,7 @@ end
90
90
  namespace :brakeman do
91
91
  task :all do
92
92
  FRAMEWORKS.each do |framework|
93
+ next unless File.directory?("#{framework}/app")
93
94
  sh "brakeman --exit-on-warn --ignore-config .brakeman.ignore #{framework}"
94
95
  end
95
96
  end
data/lib/comable.rb CHANGED
@@ -3,3 +3,4 @@ require 'comable/version'
3
3
  require 'comable_core'
4
4
  require 'comable_frontend'
5
5
  require 'comable_backend'
6
+ require 'comable_sample'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - YOSHIDA Hiroki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-15 00:00:00.000000000 Z
11
+ date: 2015-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: comable_core
@@ -16,42 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.1
19
+ version: 0.4.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.4.1
26
+ version: 0.4.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: comable_frontend
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.4.1
33
+ version: 0.4.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.4.1
40
+ version: 0.4.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: comable_backend
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.4.1
47
+ version: 0.4.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.4.1
54
+ version: 0.4.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: comable_sample
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.4.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 0.4.2
55
69
  description: Comable provides a simple way to add e-commerce features to your Ruby
56
70
  on Rails application.
57
71
  email:
@@ -66,7 +80,7 @@ files:
66
80
  - Rakefile
67
81
  - lib/comable.rb
68
82
  - lib/comable/version.rb
69
- homepage: https://github.com/hyoshida/comable#comable
83
+ homepage: https://github.com/appirits/comable#comable
70
84
  licenses:
71
85
  - MIT
72
86
  metadata: {}
@@ -86,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
100
  version: '0'
87
101
  requirements: []
88
102
  rubyforge_project:
89
- rubygems_version: 2.4.5
103
+ rubygems_version: 2.2.2
90
104
  signing_key:
91
105
  specification_version: 4
92
106
  summary: Comable provides a simple way to add e-commerce features to your Ruby on