protected_record_manager 0.0.2 → 0.1.0

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: 3dacd511ae7d9e25e7013f519a5c3c26c9db33f5
4
- data.tar.gz: 8ceee9eefe450fd8ba849e43be5df14938011469
3
+ metadata.gz: 534aaaab6761cf1bee0c48de69616cd0bbf573f8
4
+ data.tar.gz: c6f09ed83683a94a028c3f4bf6eb98307c3cdfd9
5
5
  SHA512:
6
- metadata.gz: 5692b9b434b45cf7c34ed3e9f4617c379cfdb1188eec37b24d6ebe852802343e7f66cd10f56ba676759595d3a054d5d8c849a03994ac34c9f33377fcf42aab7f
7
- data.tar.gz: 4432db1adc8e0c6a1cefdebc2229fc8c77f9a53fed1dbd2bc0ff538fb4438e2d27149f4c1a896acfe9918aa98a289b54e7c5009c1e7b49858c4afcf4b2f87676
6
+ metadata.gz: 88f8c1a76d05a06e9b15804723e5d1b86650fc04f588a2b29a07049562bb5a566cc76788c3529905c1ae9720ea7303b9b69b9d7d9a6958f56a69e9a481ce402b
7
+ data.tar.gz: ec59410b58143a1259af66715e6ad448ee50042203569f4963c9f71803c3b73e2e14fe3e91664641ce0bada18b702c28d2126b229599f9aaa1f84ec0686d4d42
data/README.md CHANGED
@@ -1,4 +1,50 @@
1
- # ProtectedRecordManager
2
- This engine is a companion to [protected_record](https://github.com/rthbound/protected_record). See its documentation for usage.
1
+ # protected_record
3
2
 
4
- This project rocks and uses MIT-LICENSE.
3
+ Please see [protected_record](https://github.com/rthbound/protected_record) for more detailed usage instructions.
4
+
5
+ ## Quick Setup for rails applications
6
+
7
+ This engine was created to provide the necessary migrations as well as a (very)
8
+ basic interface for triaging `ProtectedRecord::ChangeRequest::Record` objects.
9
+ You are free to use this gem without the engine, but you'll need to
10
+ [grab these](https://github.com/rthbound/protected_record_manager/tree/master/db/migrate)
11
+ and [this](https://github.com/rthbound/protected_record) to get up and running.
12
+
13
+ ### Routes and migrations
14
+
15
+ Add to your Rails application's Gemfile:
16
+
17
+ ```ruby
18
+ gem "protected_record_manager"
19
+ ```
20
+
21
+ And to your Rails application's `routes.rb`:
22
+
23
+ ```ruby
24
+ mount ProtectedRecordManager::Engine,
25
+ at: "/protected_record_manager", # or whatever
26
+ as: "protected_record_manager" # or what not
27
+ ```
28
+
29
+ Which will provide a user interface for triaging change requests at:
30
+
31
+ ```
32
+ http://localhost:3000/protected_record_manager/change_requests
33
+ ```
34
+
35
+ **Important:** Only users with `@user.protected_record_manager == true`
36
+ will be able to access the aforementioned resources.
37
+
38
+ Now copy over and run the migrations:
39
+
40
+ ```
41
+ $ rake protected_record_manager:install:migrations
42
+ $ rake db:migrate
43
+ ```
44
+
45
+ ## Contributing
46
+
47
+ Please do. There's plenty that could be done to round out both the interface
48
+ and the the feature set.
49
+
50
+ Issues and pull requests would be most appreciated.
@@ -1,3 +1,3 @@
1
1
  module ProtectedRecordManager
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -0,0 +1 @@
1
+ Connecting to database specified by database.yml
@@ -0,0 +1 @@
1
+ Connecting to database specified by database.yml
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protected_record_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tad Hosford
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-24 00:00:00.000000000 Z
11
+ date: 2013-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.13
19
+ version: '3.0'
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: 3.2.13
26
+ version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: protected_record
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.1.0
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'
40
+ version: 0.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -113,11 +113,14 @@ files:
113
113
  - test/dummy/config/locales/en.yml
114
114
  - test/dummy/config.ru
115
115
  - test/dummy/README.rdoc
116
+ - test/dummy/log/development.log
117
+ - test/dummy/log/test.log
116
118
  - test/unit/helpers/protected_record_manager/protected_records_helper_test.rb
117
119
  - test/unit/helpers/protected_record_manager/change_requests_helper_test.rb
118
120
  - test/protected_record_manager_test.rb
119
121
  homepage: http://github.com/rthbound/protected_record_manager
120
- licenses: []
122
+ licenses:
123
+ - MIT
121
124
  metadata: {}
122
125
  post_install_message:
123
126
  rdoc_options: []
@@ -138,8 +141,8 @@ rubyforge_project:
138
141
  rubygems_version: 2.0.0.rc.2
139
142
  signing_key:
140
143
  specification_version: 4
141
- summary: Installs the protected_record gem and provides an interface for triaging
142
- ChangeRequest records
144
+ summary: This engine was created to provide the necessary migrations as well as a
145
+ (very) basic interface for triaging `ProtectedRecord::ChangeRequest::Record` objects.
143
146
  test_files:
144
147
  - test/functional/protected_record_manager/change_requests_controller_test.rb
145
148
  - test/test_helper.rb
@@ -172,6 +175,8 @@ test_files:
172
175
  - test/dummy/config/locales/en.yml
173
176
  - test/dummy/config.ru
174
177
  - test/dummy/README.rdoc
178
+ - test/dummy/log/development.log
179
+ - test/dummy/log/test.log
175
180
  - test/unit/helpers/protected_record_manager/protected_records_helper_test.rb
176
181
  - test/unit/helpers/protected_record_manager/change_requests_helper_test.rb
177
182
  - test/protected_record_manager_test.rb