nostalgic 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -24
- data/Rakefile +3 -8
- data/app/assets/config/nostalgic_manifest.js +2 -0
- data/app/assets/javascripts/nostalgic/application.js +3 -1
- data/app/assets/stylesheets/nostalgic/application.css +3 -3
- data/app/jobs/nostalgic/application_job.rb +4 -0
- data/app/mailers/nostalgic/application_mailer.rb +6 -0
- data/app/models/nostalgic/application_record.rb +5 -0
- data/app/views/layouts/nostalgic/application.html.erb +3 -1
- data/app/views/nostalgic/_collection_select.html.erb +9 -5
- data/app/views/nostalgic/_text_field.html.erb +4 -4
- data/lib/nostalgic/form_builder.rb +3 -3
- data/lib/nostalgic/nostalgic_attr.rb +28 -27
- data/lib/nostalgic/railtie.rb +3 -5
- data/lib/nostalgic/version.rb +1 -1
- data/lib/nostalgic.rb +3 -3
- metadata +30 -130
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/models/company.rb +0 -3
- data/test/dummy/app/models/user.rb +0 -4
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/bin/setup +0 -29
- data/test/dummy/config/application.rb +0 -23
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -41
- data/test/dummy/config/environments/production.rb +0 -79
- data/test/dummy/config/environments/test.rb +0 -42
- data/test/dummy/config/initializers/assets.rb +0 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/routes.rb +0 -4
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/config.ru +0 -4
- data/test/dummy/db/migrate/20160807103323_create_users.rb +0 -9
- data/test/dummy/db/migrate/20161217105723_create_companies.rb +0 -8
- data/test/dummy/db/migrate/20161217105921_add_column_company_id_on_users.rb +0 -5
- data/test/dummy/db/schema.rb +0 -40
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +0 -162
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/models/company_test.rb +0 -5
- data/test/dummy/test/models/user_test.rb +0 -60
- data/test/fixtures/companies.yml +0 -7
- data/test/fixtures/nostalgic/attrs.yml +0 -28
- data/test/fixtures/users.yml +0 -5
- data/test/integration/navigation_test.rb +0 -8
- data/test/models/nostalgic/attr_test.rb +0 -11
- data/test/nostalgic_test.rb +0 -11
- data/test/test_helper.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f714bb70f485db22d0910b1529315a6acd2f0d9db84f2835efaada57a32ca37c
|
4
|
+
data.tar.gz: 74f4bc356fe080d08125998b1eb4c6f1f5f7819674f5270c06d0cb5ba787ec57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7f49d3fba6fffeec8248adf4323d47f170121431974a61b3c674facf8ad7187baca20f34acc52d88d9c2359c6fb7fb8439942347faa43e1cf301cd529e6236a
|
7
|
+
data.tar.gz: 0456f778b53c9c7be2166b96b9488f8fcd4de035e7fad95c4e54645f99899de9b78c60dcee90531b4cb4167d65f2fcc55386f396288246778096ed66c204e955
|
data/README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
# Nostalgic
|
2
|
+
Short description and motivation.
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
4
|
+
## Usage
|
5
|
+
How to use my plugin.
|
6
6
|
|
7
7
|
## Installation
|
8
|
-
|
9
8
|
Add this line to your application's Gemfile:
|
10
9
|
|
11
10
|
```ruby
|
@@ -13,29 +12,17 @@ gem 'nostalgic'
|
|
13
12
|
```
|
14
13
|
|
15
14
|
And then execute:
|
16
|
-
|
17
|
-
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
```
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
20
|
+
```bash
|
21
|
+
$ gem install nostalgic
|
22
|
+
```
|
32
23
|
|
33
24
|
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/nostalgic. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
-
|
25
|
+
Contribution directions go here.
|
37
26
|
|
38
27
|
## License
|
39
|
-
|
40
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
-
|
28
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
CHANGED
@@ -10,28 +10,23 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
10
10
|
rdoc.rdoc_dir = 'rdoc'
|
11
11
|
rdoc.title = 'Nostalgic'
|
12
12
|
rdoc.options << '--line-numbers'
|
13
|
-
rdoc.rdoc_files.include('README.
|
13
|
+
rdoc.rdoc_files.include('README.md')
|
14
14
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
15
|
end
|
16
16
|
|
17
|
-
APP_RAKEFILE = File.expand_path("
|
17
|
+
APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
|
18
18
|
load 'rails/tasks/engine.rake'
|
19
19
|
|
20
|
-
|
21
20
|
load 'rails/tasks/statistics.rake'
|
22
21
|
|
23
|
-
|
24
|
-
|
25
|
-
Bundler::GemHelper.install_tasks
|
22
|
+
require 'bundler/gem_tasks'
|
26
23
|
|
27
24
|
require 'rake/testtask'
|
28
25
|
|
29
26
|
Rake::TestTask.new(:test) do |t|
|
30
|
-
t.libs << 'lib'
|
31
27
|
t.libs << 'test'
|
32
28
|
t.pattern = 'test/**/*_test.rb'
|
33
29
|
t.verbose = false
|
34
30
|
end
|
35
31
|
|
36
|
-
|
37
32
|
task default: :test
|
@@ -5,9 +5,11 @@
|
|
5
5
|
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
6
|
//
|
7
7
|
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
9
|
//
|
10
10
|
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
11
|
// about supported directives.
|
12
12
|
//
|
13
|
+
//= require rails-ujs
|
14
|
+
//= require activestorage
|
13
15
|
//= require_tree .
|
@@ -6,9 +6,9 @@
|
|
6
6
|
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
7
|
*
|
8
8
|
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any
|
10
|
-
*
|
11
|
-
* file per style scope.
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
12
|
*
|
13
13
|
*= require_tree .
|
14
14
|
*= require_self
|
@@ -2,9 +2,11 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>Nostalgic</title>
|
5
|
+
<%= csrf_meta_tags %>
|
6
|
+
<%= csp_meta_tag %>
|
7
|
+
|
5
8
|
<%= stylesheet_link_tag "nostalgic/application", media: "all" %>
|
6
9
|
<%= javascript_include_tag "nostalgic/application" %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
10
|
</head>
|
9
11
|
<body>
|
10
12
|
|
@@ -5,8 +5,10 @@
|
|
5
5
|
<%= f.collection_select attr, collection, value_method, text_method, options, html_options %>
|
6
6
|
</td>
|
7
7
|
<td>
|
8
|
-
<%= f.text_field "#{attr}_effective_at", :
|
9
|
-
|
8
|
+
<%= f.text_field "#{attr}_effective_at", class: 'datepicker', style: 'display: none;' %>
|
9
|
+
</td>
|
10
|
+
<td>
|
11
|
+
<%= image_tag 'nostalgic/list.png', onclick: 'nostalgic.edit_nostalgic_attr(this); return false;' %>
|
10
12
|
</td>
|
11
13
|
</tr>
|
12
14
|
</thead>
|
@@ -17,11 +19,13 @@
|
|
17
19
|
<td>
|
18
20
|
<%= f.hidden_field :id %>
|
19
21
|
<%= f.hidden_field :_destroy %>
|
20
|
-
<%= f.collection_select :value, collection, value_method, text_method, options, html_options.merge(:
|
22
|
+
<%= f.collection_select :value, collection, value_method, text_method, options, html_options.merge(disabled: true, readonly: true) %>
|
23
|
+
</td>
|
24
|
+
<td>
|
25
|
+
<%= content_tag(:span, f.object.effective_at) %>
|
21
26
|
</td>
|
22
27
|
<td>
|
23
|
-
<%=
|
24
|
-
<%= image_tag 'nostalgic/minus.png', :onclick => 'nostalgic.remove_row(this); return false;' %>
|
28
|
+
<%= image_tag 'nostalgic/minus.png', onclick: 'nostalgic.remove_row(this); return false;' %>
|
25
29
|
</td>
|
26
30
|
</tr>
|
27
31
|
<% end %>
|
@@ -2,13 +2,13 @@
|
|
2
2
|
<thead>
|
3
3
|
<tr>
|
4
4
|
<td>
|
5
|
-
<%= f.text_field attr, :
|
5
|
+
<%= f.text_field attr, class: css_class %>
|
6
6
|
</td>
|
7
7
|
<td>
|
8
|
-
<%= f.text_field "#{attr}_effective_at", :
|
8
|
+
<%= f.text_field "#{attr}_effective_at", class: 'datepicker', style: 'display: none;' %>
|
9
9
|
</td>
|
10
10
|
<td>
|
11
|
-
<%= image_tag 'nostalgic/list.png', :
|
11
|
+
<%= image_tag 'nostalgic/list.png', onclick: 'nostalgic.edit_nostalgic_attr(this); return false;' %>
|
12
12
|
</td>
|
13
13
|
</tr>
|
14
14
|
</thead>
|
@@ -25,7 +25,7 @@
|
|
25
25
|
<%= content_tag(:span, f.object.effective_at, class: css_class) %>
|
26
26
|
</td>
|
27
27
|
<td>
|
28
|
-
<%= image_tag 'nostalgic/minus.png', :
|
28
|
+
<%= image_tag 'nostalgic/minus.png', onclick: 'nostalgic.remove_row(this); return false;' %>
|
29
29
|
</td>
|
30
30
|
</tr>
|
31
31
|
<% end %>
|
@@ -4,13 +4,13 @@ class ActionView::Helpers::FormBuilder
|
|
4
4
|
include ActionView::Helpers::AssetTagHelper
|
5
5
|
|
6
6
|
def nostalgic_text_field(method, options = {})
|
7
|
-
@template.render 'nostalgic/text_field', :
|
7
|
+
@template.render 'nostalgic/text_field', f: self, attr: method, css_class: options[:class]
|
8
8
|
end
|
9
9
|
|
10
10
|
def nostalgic_collection_select(method, collection, value_method, text_method, options = {}, html_options = {})
|
11
11
|
@template.render 'nostalgic/collection_select',
|
12
|
-
:
|
13
|
-
:
|
12
|
+
f: self, attr: method, collection: collection, value_method: value_method, text_method: text_method,
|
13
|
+
options: options, html_options: html_options
|
14
14
|
end
|
15
15
|
|
16
16
|
end
|
@@ -35,48 +35,30 @@ module Nostalgic
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
|
39
|
-
attr_accessor :nostalgic_attrs
|
38
|
+
class_methods do
|
40
39
|
|
41
|
-
def
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
if scope.fetch(:nostalgic, false)
|
46
|
-
foreign_key = options.fetch(:foreign_key, "#{name}_id")
|
47
|
-
nostalgic_attr foreign_key
|
48
|
-
|
49
|
-
class_eval <<-METHODS, __FILE__, __LINE__ + 1
|
50
|
-
def #{name}_on(date)
|
51
|
-
return self.#{name} unless date.present?
|
52
|
-
|
53
|
-
'#{name}'.classify.constantize.find_by_id(#{foreign_key}_on(date))
|
54
|
-
end
|
55
|
-
|
56
|
-
alias_method :#{name}_at, :#{name}_on
|
57
|
-
METHODS
|
58
|
-
end
|
40
|
+
def nostalgic_attrs
|
41
|
+
@@_nostalgic_attrs ||= {}
|
42
|
+
@@_nostalgic_attrs[self] ||= []
|
59
43
|
end
|
60
44
|
|
61
45
|
def nostalgic_attr(*attrs)
|
62
|
-
self.nostalgic_attrs ||= []
|
63
|
-
|
64
46
|
attrs.each do |attr|
|
65
|
-
next if self.nostalgic_attrs.include?(attr.to_sym)
|
66
|
-
self.nostalgic_attrs << attr.to_sym
|
67
47
|
|
68
48
|
model_type = self.model_name.to_s
|
69
49
|
|
70
50
|
class_eval <<-METHODS, __FILE__, __LINE__ + 1
|
71
|
-
|
72
|
-
|
51
|
+
nostalgic_attrs << attr.to_sym unless nostalgic_attrs.include?(attr.to_sym)
|
52
|
+
|
53
|
+
has_many :#{attr.to_s.pluralize}, -> {where(model_type: model_type, name: '#{attr}').order('effective_at desc')}, class_name: 'Nostalgic::Attr', foreign_key: 'model_id'
|
54
|
+
accepts_nested_attributes_for :#{attr.to_s.pluralize}, allow_destroy: true
|
73
55
|
|
74
56
|
attr_accessor :#{attr}_effective_at
|
75
57
|
|
76
58
|
def #{attr}_on(date)
|
77
59
|
return self.#{attr} unless date.present?
|
78
60
|
|
79
|
-
na = Nostalgic::Attr.where(:
|
61
|
+
na = Nostalgic::Attr.where(model_type: self.class.name, model_id: self.id, name: '#{attr}')
|
80
62
|
na = na.where('effective_at <= ?', date).order('effective_at desc').first
|
81
63
|
na ? na.value : self.#{attr}
|
82
64
|
end
|
@@ -86,6 +68,25 @@ module Nostalgic
|
|
86
68
|
end
|
87
69
|
end
|
88
70
|
|
71
|
+
def belongs_to(name, scope = nil, **options)
|
72
|
+
super(name, scope, **options.except(:nostalgic))
|
73
|
+
|
74
|
+
if options.fetch(:nostalgic, false)
|
75
|
+
foreign_key = options.fetch(:foreign_key, "#{name}_id")
|
76
|
+
nostalgic_attr foreign_key
|
77
|
+
|
78
|
+
class_eval <<-METHODS, __FILE__, __LINE__ + 1
|
79
|
+
def #{name}_on(date)
|
80
|
+
return self.#{name} unless date.present?
|
81
|
+
|
82
|
+
'#{name}'.classify.constantize.find_by_id(#{foreign_key}_on(date))
|
83
|
+
end
|
84
|
+
|
85
|
+
alias_method :#{name}_at, :#{name}_on
|
86
|
+
METHODS
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
89
90
|
end
|
90
91
|
end
|
91
92
|
end
|
data/lib/nostalgic/railtie.rb
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
module Nostalgic
|
2
2
|
class Railtie < ::Rails::Railtie
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
include Nostalgic::NostalgicAttr
|
8
|
-
end
|
4
|
+
ActiveSupport.on_load :active_record do
|
5
|
+
require_relative 'nostalgic_attr'
|
6
|
+
include Nostalgic::NostalgicAttr
|
9
7
|
end
|
10
8
|
|
11
9
|
end
|
data/lib/nostalgic/version.rb
CHANGED
data/lib/nostalgic.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nostalgic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,76 +16,76 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '7'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '5.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '7'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '0'
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "
|
44
|
+
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: minitest
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rake
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - "
|
65
|
+
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '0'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - "
|
72
|
+
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: sqlite3
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - "
|
79
|
+
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
81
|
+
version: '0'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- - "
|
86
|
+
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
88
|
+
version: '0'
|
89
89
|
description: column versioning utility
|
90
90
|
email:
|
91
91
|
- ichylinux@gmail.com
|
@@ -95,6 +95,7 @@ extra_rdoc_files: []
|
|
95
95
|
files:
|
96
96
|
- README.md
|
97
97
|
- Rakefile
|
98
|
+
- app/assets/config/nostalgic_manifest.js
|
98
99
|
- app/assets/images/nostalgic/calendar.gif
|
99
100
|
- app/assets/images/nostalgic/list.png
|
100
101
|
- app/assets/images/nostalgic/minus.png
|
@@ -104,6 +105,9 @@ files:
|
|
104
105
|
- app/assets/stylesheets/nostalgic/application.css
|
105
106
|
- app/controllers/nostalgic/application_controller.rb
|
106
107
|
- app/helpers/nostalgic/application_helper.rb
|
108
|
+
- app/jobs/nostalgic/application_job.rb
|
109
|
+
- app/mailers/nostalgic/application_mailer.rb
|
110
|
+
- app/models/nostalgic/application_record.rb
|
107
111
|
- app/models/nostalgic/attr.rb
|
108
112
|
- app/views/layouts/nostalgic/application.html.erb
|
109
113
|
- app/views/nostalgic/_collection_select.html.erb
|
@@ -119,62 +123,10 @@ files:
|
|
119
123
|
- lib/nostalgic/railtie.rb
|
120
124
|
- lib/nostalgic/version.rb
|
121
125
|
- lib/tasks/nostalgic_tasks.rake
|
122
|
-
- test/dummy/README.rdoc
|
123
|
-
- test/dummy/Rakefile
|
124
|
-
- test/dummy/app/assets/javascripts/application.js
|
125
|
-
- test/dummy/app/assets/stylesheets/application.css
|
126
|
-
- test/dummy/app/controllers/application_controller.rb
|
127
|
-
- test/dummy/app/helpers/application_helper.rb
|
128
|
-
- test/dummy/app/models/company.rb
|
129
|
-
- test/dummy/app/models/user.rb
|
130
|
-
- test/dummy/app/views/layouts/application.html.erb
|
131
|
-
- test/dummy/bin/bundle
|
132
|
-
- test/dummy/bin/rails
|
133
|
-
- test/dummy/bin/rake
|
134
|
-
- test/dummy/bin/setup
|
135
|
-
- test/dummy/config.ru
|
136
|
-
- test/dummy/config/application.rb
|
137
|
-
- test/dummy/config/boot.rb
|
138
|
-
- test/dummy/config/database.yml
|
139
|
-
- test/dummy/config/environment.rb
|
140
|
-
- test/dummy/config/environments/development.rb
|
141
|
-
- test/dummy/config/environments/production.rb
|
142
|
-
- test/dummy/config/environments/test.rb
|
143
|
-
- test/dummy/config/initializers/assets.rb
|
144
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
145
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
146
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
147
|
-
- test/dummy/config/initializers/inflections.rb
|
148
|
-
- test/dummy/config/initializers/mime_types.rb
|
149
|
-
- test/dummy/config/initializers/session_store.rb
|
150
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
151
|
-
- test/dummy/config/locales/en.yml
|
152
|
-
- test/dummy/config/routes.rb
|
153
|
-
- test/dummy/config/secrets.yml
|
154
|
-
- test/dummy/db/migrate/20160807103323_create_users.rb
|
155
|
-
- test/dummy/db/migrate/20161217105723_create_companies.rb
|
156
|
-
- test/dummy/db/migrate/20161217105921_add_column_company_id_on_users.rb
|
157
|
-
- test/dummy/db/schema.rb
|
158
|
-
- test/dummy/db/test.sqlite3
|
159
|
-
- test/dummy/log/test.log
|
160
|
-
- test/dummy/public/404.html
|
161
|
-
- test/dummy/public/422.html
|
162
|
-
- test/dummy/public/500.html
|
163
|
-
- test/dummy/public/favicon.ico
|
164
|
-
- test/dummy/test/models/company_test.rb
|
165
|
-
- test/dummy/test/models/user_test.rb
|
166
|
-
- test/fixtures/companies.yml
|
167
|
-
- test/fixtures/nostalgic/attrs.yml
|
168
|
-
- test/fixtures/users.yml
|
169
|
-
- test/integration/navigation_test.rb
|
170
|
-
- test/models/nostalgic/attr_test.rb
|
171
|
-
- test/nostalgic_test.rb
|
172
|
-
- test/test_helper.rb
|
173
126
|
homepage: https://github.com/ichylinux/nostalgic
|
174
127
|
licenses:
|
175
128
|
- MIT
|
176
|
-
metadata:
|
177
|
-
allowed_push_host: https://rubygems.org
|
129
|
+
metadata: {}
|
178
130
|
post_install_message:
|
179
131
|
rdoc_options: []
|
180
132
|
require_paths:
|
@@ -183,67 +135,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
135
|
requirements:
|
184
136
|
- - ">="
|
185
137
|
- !ruby/object:Gem::Version
|
186
|
-
version: 2.
|
138
|
+
version: 2.7.0
|
187
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
140
|
requirements:
|
189
141
|
- - ">="
|
190
142
|
- !ruby/object:Gem::Version
|
191
143
|
version: '0'
|
192
144
|
requirements: []
|
193
|
-
|
194
|
-
rubygems_version: 2.7.6
|
145
|
+
rubygems_version: 3.3.10
|
195
146
|
signing_key:
|
196
147
|
specification_version: 4
|
197
148
|
summary: column versioning utility
|
198
|
-
test_files:
|
199
|
-
- test/dummy/README.rdoc
|
200
|
-
- test/dummy/Rakefile
|
201
|
-
- test/dummy/app/assets/javascripts/application.js
|
202
|
-
- test/dummy/app/assets/stylesheets/application.css
|
203
|
-
- test/dummy/app/controllers/application_controller.rb
|
204
|
-
- test/dummy/app/helpers/application_helper.rb
|
205
|
-
- test/dummy/app/models/company.rb
|
206
|
-
- test/dummy/app/models/user.rb
|
207
|
-
- test/dummy/app/views/layouts/application.html.erb
|
208
|
-
- test/dummy/bin/bundle
|
209
|
-
- test/dummy/bin/rails
|
210
|
-
- test/dummy/bin/rake
|
211
|
-
- test/dummy/bin/setup
|
212
|
-
- test/dummy/config.ru
|
213
|
-
- test/dummy/config/application.rb
|
214
|
-
- test/dummy/config/boot.rb
|
215
|
-
- test/dummy/config/database.yml
|
216
|
-
- test/dummy/config/environment.rb
|
217
|
-
- test/dummy/config/environments/development.rb
|
218
|
-
- test/dummy/config/environments/production.rb
|
219
|
-
- test/dummy/config/environments/test.rb
|
220
|
-
- test/dummy/config/initializers/assets.rb
|
221
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
222
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
223
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
224
|
-
- test/dummy/config/initializers/inflections.rb
|
225
|
-
- test/dummy/config/initializers/mime_types.rb
|
226
|
-
- test/dummy/config/initializers/session_store.rb
|
227
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
228
|
-
- test/dummy/config/locales/en.yml
|
229
|
-
- test/dummy/config/routes.rb
|
230
|
-
- test/dummy/config/secrets.yml
|
231
|
-
- test/dummy/db/migrate/20160807103323_create_users.rb
|
232
|
-
- test/dummy/db/migrate/20161217105723_create_companies.rb
|
233
|
-
- test/dummy/db/migrate/20161217105921_add_column_company_id_on_users.rb
|
234
|
-
- test/dummy/db/schema.rb
|
235
|
-
- test/dummy/db/test.sqlite3
|
236
|
-
- test/dummy/public/404.html
|
237
|
-
- test/dummy/public/422.html
|
238
|
-
- test/dummy/public/500.html
|
239
|
-
- test/dummy/public/favicon.ico
|
240
|
-
- test/dummy/test/models/company_test.rb
|
241
|
-
- test/dummy/test/models/user_test.rb
|
242
|
-
- test/dummy/log/test.log
|
243
|
-
- test/fixtures/companies.yml
|
244
|
-
- test/fixtures/nostalgic/attrs.yml
|
245
|
-
- test/fixtures/users.yml
|
246
|
-
- test/integration/navigation_test.rb
|
247
|
-
- test/models/nostalgic/attr_test.rb
|
248
|
-
- test/nostalgic_test.rb
|
249
|
-
- test/test_helper.rb
|
149
|
+
test_files: []
|
data/test/dummy/README.rdoc
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
== README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|
data/test/dummy/Rakefile
DELETED