clockwork_database_events 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6cd8bcf108e24d93e286818e1bc4a2e357c6b6de
4
- data.tar.gz: 6fac3312115c843c93b8bee8b881c2cf41734b53
3
+ metadata.gz: 94b044c7015819126b58366a432c84201dedd576
4
+ data.tar.gz: 1380f79188f532cceb163c8642b5415e5a7fcf65
5
5
  SHA512:
6
- metadata.gz: 7eb0447ad6c84b2cfa4cc31e2750c0d1df109b92c5552ee924906fc75f79ce74344668581b63685425dd0949f7e6764656a0bc8fe404169573a1f5014cef4416
7
- data.tar.gz: 933c5321b9a4a90bec80f5c54b8e2d787e37b1828308d9b2ae72a6098ec575bc01b7dae2f5e1db0ffef2aa26cdc4c7056d927456b260f1b5ba232e303732036c
6
+ metadata.gz: b528c0a2fa0de6e823d3b31cec6458ff00a91dc959b9bdd3ef4a8c18beffb4db11e10fa455f957322d5118b6a4eb334a7f9c0d98cfcf4b985f85f012120adbd0
7
+ data.tar.gz: c86538d5766548c04c3ded22a5e70c6cb5c984c213d6bf5c2954c8628028b9580dd884beb1a99b587f467efe57a0ed78d89e3d872b47fb3d4d857ee7d3bc3120
data/Rakefile CHANGED
@@ -1,4 +1,7 @@
1
1
  require 'bundler/gem_tasks'
2
+ require 'rubocop/rake_task'
3
+
4
+ RuboCop::RakeTask.new
2
5
 
3
6
  namespace :db do
4
7
  desc 'migrate the database to the latest version'
data/bin/console CHANGED
@@ -1,14 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "clockwork_database_events"
3
+ require 'bundler/setup'
4
+ require 'clockwork_database_events'
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
8
8
 
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
9
+ require 'pry'
10
+ Pry.start
@@ -13,14 +13,18 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = 'http://skalera.com/'
14
14
  spec.license = 'MIT'
15
15
 
16
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(spec)/})
18
+ end
17
19
  spec.bindir = 'bin'
18
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
21
  spec.require_paths = ['lib']
20
22
 
21
23
  spec.add_runtime_dependency 'sequel', '~> 4'
22
- spec.add_runtime_dependency 'active_support'
24
+ spec.add_runtime_dependency 'activesupport'
23
25
 
24
26
  spec.add_development_dependency 'bundler', '~> 1'
25
27
  spec.add_development_dependency 'rake', '~> 10'
28
+ spec.add_development_dependency 'rubocop'
29
+ spec.add_development_dependency 'pry'
26
30
  end
@@ -12,7 +12,8 @@ Sequel.migration do
12
12
  Integer :frequency_quantity
13
13
  String :at, null: false, default: ''
14
14
  Integer :frequency_period_id, null: false
15
- foreign_key [:frequency_period_id], :frequency_periods, name: 'clockwork_database_events_frequency_period_id_fkey'
15
+ foreign_key [:frequency_period_id], :frequency_periods,
16
+ name: 'clockwork_database_events_frequency_period_id_fkey'
16
17
 
17
18
  DateTime :created_at, null: false
18
19
  DateTime :updated_at, null: false
@@ -1,3 +1,4 @@
1
+ # Database event model
1
2
  class ClockworkDatabaseEvent < Sequel::Model
2
3
  many_to_one :frequency_period
3
4
 
@@ -1,2 +1,3 @@
1
+ # Frequency period model
1
2
  class FrequencyPeriod < Sequel::Model
2
3
  end
@@ -1,3 +1,4 @@
1
+ # version
1
2
  module ClockworkDatabaseEvents
2
- VERSION = "0.1.0"
3
+ VERSION = '0.1.1'
3
4
  end
@@ -6,6 +6,6 @@ require 'clockwork_database_events/version'
6
6
  require 'clockwork_database_events/models/clockwork_database_event'
7
7
  require 'clockwork_database_events/models/frequency_period'
8
8
 
9
+ # clockwork database events
9
10
  module ClockworkDatabaseEvents
10
- # Your code goes here...
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clockwork_database_events
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Englund
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4'
27
27
  - !ruby/object:Gem::Dependency
28
- name: active_support
28
+ name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -66,6 +66,34 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
69
97
  description:
70
98
  email:
71
99
  - martin@englund.nu