pamatat 0.2.0
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 +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +56 -0
- data/Rakefile +36 -0
- data/app/assets/config/pamatat_manifest.js +2 -0
- data/app/assets/javascripts/pamatat/application.js +13 -0
- data/app/assets/javascripts/pamatat/tasks.js +2 -0
- data/app/assets/stylesheets/pamatat/application.css +11513 -0
- data/app/assets/stylesheets/pamatat/tasks.css +4 -0
- data/app/assets/stylesheets/scaffold.css +80 -0
- data/app/controllers/pamatat/application_controller.rb +5 -0
- data/app/controllers/pamatat/tasks_controller.rb +62 -0
- data/app/models/pamatat/application_record.rb +5 -0
- data/app/models/pamatat/task.rb +4 -0
- data/app/views/layouts/pamatat/application.html.erb +14 -0
- data/app/views/pamatat/tasks/_form.html.erb +37 -0
- data/app/views/pamatat/tasks/edit.html.erb +6 -0
- data/app/views/pamatat/tasks/index.html.erb +18 -0
- data/app/views/pamatat/tasks/new.html.erb +7 -0
- data/app/views/pamatat/tasks/show.html.erb +24 -0
- data/config/routes.rb +3 -0
- data/db/migrate/20171216043612_create_pamatat_tasks.rb +12 -0
- data/lib/pamatat/engine.rb +5 -0
- data/lib/pamatat/version.rb +3 -0
- data/lib/pamatat.rb +5 -0
- data/lib/tasks/pamatat_tasks.rake +4 -0
- metadata +98 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 04b9216d24ed676bdf4c3664499f8db332a5a58b
|
4
|
+
data.tar.gz: 2edcde402dc3b1743471a03ae49bcb245699fe8c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4a0f9dc7eecea066f9f84310dd483798fff2632ae8d24a1c1edc47d90c4ee62757cecda801a67eb8a64dc1c41c7cb4274a663e5e700fe2ef97ad7f3c05f8a6f5
|
7
|
+
data.tar.gz: 246edd4acb1177bb128f3a75a8d78238c1fa5fcf9323ca718e97ab94c3fdb738090bdc4e926a29cc53a67d42871e9e4a01ae62ba2a5fd4278af1b92f44d114c1
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2017 Drew-Mace
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# Pamatat (Pamätať)
|
2
|
+
Pamätať is Slovak for remember. With Pamatat create a to-do list so that no task gets left behind.
|
3
|
+
|
4
|
+
## Usage
|
5
|
+
Once installed you can navigate to `/pamatat/tasks` and start adding tasks, quick and easy.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'pamatat'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
```
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
```bash
|
21
|
+
$ gem install pamatat
|
22
|
+
```
|
23
|
+
|
24
|
+
## Contributing
|
25
|
+
To make contributions fork the repo.
|
26
|
+
|
27
|
+
To test the engine inside a rails application fork the repo and add:
|
28
|
+
```ruby
|
29
|
+
gem 'pamatat', path: 'yourpath/pamatat'
|
30
|
+
```
|
31
|
+
|
32
|
+
then in config/routes.rb add
|
33
|
+
|
34
|
+
``` ruby
|
35
|
+
mount Pamatat::Engine, at: "/pamatat"
|
36
|
+
```
|
37
|
+
After that you install using
|
38
|
+
```ruby
|
39
|
+
bin/rails pamatat:install:migrations
|
40
|
+
```
|
41
|
+
and run migration
|
42
|
+
```ruby
|
43
|
+
bin/rails db:migrate
|
44
|
+
```
|
45
|
+
|
46
|
+
## To-Do for the to-do's
|
47
|
+
|
48
|
+
- [] If a task is marked as "important" it will be moved to the top of the list.
|
49
|
+
- [] Once a task is marked "complete" the text will have a line through it or color change.
|
50
|
+
- [] Marking a task as "important" or "complete" should be able to be done with a single click.
|
51
|
+
- [] Edit `_form.html.erb` to use bootstrap styling so its more visually pleasing.
|
52
|
+
- [] Add functionality to enable user to pick a due date, with a count-down timer. As timer gets closer to 0 it will do something(i.e. ?Flash, change colors?)
|
53
|
+
- [] Ability to set a repeatable task, i.e. monthly, weekly, etc.
|
54
|
+
|
55
|
+
## License
|
56
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'Pamatat'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.md')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
|
18
|
+
load 'rails/tasks/engine.rake'
|
19
|
+
|
20
|
+
|
21
|
+
load 'rails/tasks/statistics.rake'
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
require 'bundler/gem_tasks'
|
26
|
+
|
27
|
+
require 'rake/testtask'
|
28
|
+
|
29
|
+
Rake::TestTask.new(:test) do |t|
|
30
|
+
t.libs << 'test'
|
31
|
+
t.pattern = 'test/**/*_test.rb'
|
32
|
+
t.verbose = false
|
33
|
+
end
|
34
|
+
|
35
|
+
|
36
|
+
task default: :test
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
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. JavaScript code in this file should be added after the last require_* statement.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require_tree .
|