active_tools 0.0.3 → 0.0.5

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: acfe4b265f95ccad971ff61c48084979dd50b044
4
+ data.tar.gz: 9d6eecba7d6887738b49cc1df2227e4366f08bf2
5
+ SHA512:
6
+ metadata.gz: 8c3567fda0e3798d24c27483bc433d4cb72283ad9bccd366c48b7ef3f29f569af4b82b997755b35312dfcf5f92aa13020f401510ee4cf524d11a23201ce4bb93
7
+ data.tar.gz: 8242b93fed275505b7cfaf7be8a3eb77c08f0440234ad4c8bac53d442830d7f15635f3831d9f611d5a23a5b6860eb845b38e390d8975fd58204a23e3ce453cc2
data/active_tools.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
 
15
15
  gem.rubyforge_project = "active_tools"
16
16
 
17
- gem.add_development_dependency "rails"
17
+ gem.add_dependency "rails"
18
18
 
19
19
  gem.files = `git ls-files`.split($/)
20
20
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -52,10 +52,13 @@ module ActiveTools
52
52
 
53
53
 
54
54
  end
55
+
56
+ ::ActiveModel::Validations.send(:include, ActiveModel::DelegateAttributes)
57
+
55
58
  end
56
59
 
57
60
  module OnLoadActiveRecord
58
- ::ActiveModel::Validations.send(:include, ActiveModel::DelegateAttributes)
61
+ #::ActiveRecord::Base.send(:include, ActiveModel::DelegateAttributes)
59
62
  end
60
63
 
61
64
  end
@@ -0,0 +1,27 @@
1
+ module ActiveTools
2
+ module ActiveModel
3
+ module RecordId
4
+ extend ::ActiveSupport::Concern
5
+
6
+ included do
7
+ end
8
+
9
+ module ClassMethods
10
+ end
11
+
12
+ def record_id
13
+ "#{self.class.model_name.singular}_#{try(:id)||uniq_id}"
14
+ end
15
+
16
+ def uniq_id
17
+ Base64.urlsafe_encode64(Time.now._dump)
18
+ end
19
+
20
+ end
21
+ end
22
+
23
+ module OnLoadActiveRecord
24
+ include ActiveModel::RecordId
25
+ end
26
+
27
+ end
@@ -0,0 +1,7 @@
1
+ require 'active_tools/active_record/record_id'
2
+
3
+ module ActiveTools
4
+ module ActiveRecord
5
+
6
+ end
7
+ end
@@ -16,6 +16,7 @@ module ActiveTools
16
16
  require 'active_tools/actionpack'
17
17
  require 'active_tools/activesupport'
18
18
  require 'active_tools/activemodel'
19
+ require 'active_tools/activerecord'
19
20
  require 'active_tools/misc'
20
21
  end
21
22
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveTools
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/active_tools.rb CHANGED
@@ -4,6 +4,8 @@ module ActiveTools
4
4
  def self.load!
5
5
  require 'active_tools/engine'
6
6
  require 'active_tools/railtie'
7
+ require 'active_tools/core_extension'
8
+
7
9
  end
8
10
  end
9
11
 
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Valery Kvon
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-24 00:00:00.000000000 Z
11
+ date: 2013-04-23 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
- type: :development
20
+ type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  description: Missing tools for Rails developers
@@ -49,7 +46,9 @@ files:
49
46
  - lib/active_tools/action_pack/action_view/tag_attributes.rb
50
47
  - lib/active_tools/actionpack.rb
51
48
  - lib/active_tools/active_model/delegate_attributes.rb
49
+ - lib/active_tools/active_record/record_id.rb
52
50
  - lib/active_tools/activemodel.rb
51
+ - lib/active_tools/activerecord.rb
53
52
  - lib/active_tools/activesupport.rb
54
53
  - lib/active_tools/bundle.rb
55
54
  - lib/active_tools/core_extension.rb
@@ -69,27 +68,26 @@ files:
69
68
  - lib/active_tools/version.rb
70
69
  homepage: http://vkvon.ru/projects/active_tools
71
70
  licenses: []
71
+ metadata: {}
72
72
  post_install_message:
73
73
  rdoc_options: []
74
74
  require_paths:
75
75
  - lib
76
76
  required_ruby_version: !ruby/object:Gem::Requirement
77
- none: false
78
77
  requirements:
79
- - - ! '>='
78
+ - - '>='
80
79
  - !ruby/object:Gem::Version
81
80
  version: '0'
82
81
  required_rubygems_version: !ruby/object:Gem::Requirement
83
- none: false
84
82
  requirements:
85
- - - ! '>='
83
+ - - '>='
86
84
  - !ruby/object:Gem::Version
87
85
  version: '0'
88
86
  requirements: []
89
87
  rubyforge_project: active_tools
90
- rubygems_version: 1.8.24
88
+ rubygems_version: 2.0.0
91
89
  signing_key:
92
- specification_version: 3
90
+ specification_version: 4
93
91
  summary: ActionDispatch, ActionController, ActiveModel, ActiveRecord, ActiveSupport,
94
92
  ActionView and core extensions
95
93
  test_files: []