fullcalendar-v2-rails 2.0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +16 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +23 -0
- data/Rakefile +2 -0
- data/fullcalendar-v2-rails.gemspec +26 -0
- data/lib/fullcalendar/v2/rails/version.rb +7 -0
- data/lib/fullcalendar/v2/rails.rb +10 -0
- data/lib/momentjs/rails/version.rb +6 -0
- data/lib/momentjs/rails.rb +7 -0
- data/updater +95 -0
- data/vendor/assets/javascripts/.gitkeep +0 -0
- data/vendor/assets/javascripts/fullcalendar/fullcalendar.js +7083 -0
- data/vendor/assets/javascripts/fullcalendar/fullcalendar.min.js +7 -0
- data/vendor/assets/javascripts/fullcalendar/gcal.js +100 -0
- data/vendor/assets/javascripts/fullcalendar/lang/ar-ma.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/ar-sa.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/ar.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/bg.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/ca.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/cs.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/da.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/de-at.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/de.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/el.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/en-au.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/en-ca.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/en-gb.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/es.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/fa.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/fi.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/fr-ca.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/fr.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/hi.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/hr.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/hu.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/id.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/is.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/it.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/ja.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/ko.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/lt.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/lv.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/nl.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/pl.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/pt-br.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/pt.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/ro.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/ru.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/sk.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/sl.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/sr-cyrl.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/sr.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/sv.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/th.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/tr.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/uk.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/vi.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/zh-cn.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang/zh-tw.js +1 -0
- data/vendor/assets/javascripts/fullcalendar/lang-all.js +3 -0
- data/vendor/assets/stylesheets/.gitkeep +0 -0
- data/vendor/assets/stylesheets/fullcalendar/fullcalendar.css +601 -0
- data/vendor/assets/stylesheets/fullcalendar/fullcalendar.print.css +32 -0
- metadata +150 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
OTI4YmEyZTU2MzAzMDY0M2IxMmJlYTlmNDZkY2YwNGQ3MDA1Njk0MA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YTEwMDU1OTYyNTQxOTY4Y2I5ZWFmY2M5YWI3ZDE1ODg4ZjNlNjdmNA==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZTg0ODdiNzU3ZDc3OGRmYmM4YTVlZmU0NDUwNGUzZjViMjFiYWIzMzc0M2Ri
|
10
|
+
OGEzZjNjYWI4NDg3NDA0ZWM3NTNkMTY2OGU0NGQzMWNjY2Y2NTJlMWM5Njlh
|
11
|
+
N2ZlNTU2YWQxODE5YWNkMzhjNjNiOTkyNzAyNzNlM2Q4NTk1ZmY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NDhkOGZjOWMyZjViZDczZTliMWY2NTZiYWQ5ODg2YzExZTBlZjZkMDBhMzM5
|
14
|
+
N2I0YjNmMmNjYjgxMmM2NmYwNWVlNjc0YWFkYzk4OTI2MjVkNmVhNDE1YzMw
|
15
|
+
NTMzZTg3N2M5NTYzMzY1OGRkZjEyMjNlM2Q5NzdkYmFkMjNlZDE=
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Geoffrey Hervet
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Fullcalendar::V2::Rails
|
2
|
+
|
3
|
+
Fullcalendar plugin pipeline
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'fullcalendar-v2-rails'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install fullcalendar-v2-rails
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
data/Rakefile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'fullcalendar/v2/rails/version'
|
5
|
+
require 'momentjs/rails/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "fullcalendar-v2-rails"
|
9
|
+
spec.version = Fullcalendar::V2::Rails::VERSION
|
10
|
+
spec.authors = ["Geoffrey Hervet"]
|
11
|
+
spec.email = ["hervetg@gmail.com"]
|
12
|
+
spec.summary = %q{The fullcalendar JavaScript plugin ready to play with the Rails Asset Pipeline.}
|
13
|
+
# spec.description = %q{TODO: Write a longer description. Optional.}
|
14
|
+
spec.homepage = 'https://github.com/GeoffreyHervet/fullcalendar-v2-rails'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0")
|
18
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
|
+
spec.require_paths = ['lib']
|
21
|
+
|
22
|
+
spec.add_development_dependency 'bundler', '~> 1.6'
|
23
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
24
|
+
|
25
|
+
spec.add_dependency MomentJs::Rails::GEM, '~> ' + MomentJs::Rails::VERSION
|
26
|
+
end
|
data/updater
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require './lib/fullcalendar/v2/rails/version'
|
4
|
+
require 'net/http'
|
5
|
+
|
6
|
+
class Updater
|
7
|
+
def initialize()
|
8
|
+
@fullcalendar_page = %w(arshaw.com /fullcalendar/download/)
|
9
|
+
@fullcalendar_version_regex = /https:\/\/github.com\/arshaw\/fullcalendar\/releases\/download\/v(\d\.\d\.\d)\/fullcalendar-2.0.2.zip/
|
10
|
+
@current_full_calendar_version = Fullcalendar::V2::Rails::VERSION
|
11
|
+
@files = {
|
12
|
+
javascripts: %w(*.js lang),
|
13
|
+
stylesheets: ['*.css']
|
14
|
+
}
|
15
|
+
end
|
16
|
+
|
17
|
+
def run
|
18
|
+
src = Net::HTTP.get(@fullcalendar_page[0], @fullcalendar_page[1])
|
19
|
+
mathes = src.match @fullcalendar_version_regex
|
20
|
+
if not mathes.captures.empty?
|
21
|
+
if Gem::Version.new(mathes.captures[0]) > Gem::Version.new(@current_full_calendar_version)
|
22
|
+
update mathes.captures[0]
|
23
|
+
else
|
24
|
+
puts 'No update required'
|
25
|
+
end
|
26
|
+
else
|
27
|
+
raise 'No Version found'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def update(version)
|
32
|
+
update_files version
|
33
|
+
update_version version
|
34
|
+
update_release
|
35
|
+
end
|
36
|
+
|
37
|
+
def update_files(version)
|
38
|
+
zip = downlaod_zipball version
|
39
|
+
# clear_assets
|
40
|
+
puts '[*] Unziping'
|
41
|
+
%x{unzip #{zip} -d ./tmp/content}
|
42
|
+
dir = './tmp/content/fullcalendar-' + version
|
43
|
+
@files.keys.each do |directory|
|
44
|
+
files = @files[directory]
|
45
|
+
puts '[*] Copying ' + directory.to_s
|
46
|
+
files.each do |file|
|
47
|
+
puts "cp -r #{dir}/#{file} ./vendor/assets/#{directory.to_s}/fullcalendar"
|
48
|
+
%x{cp -r #{dir}/#{file} ./vendor/assets/#{directory.to_s}/fullcalendar}
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def update_version version
|
54
|
+
version_rb = "module Fullcalendar
|
55
|
+
module V2
|
56
|
+
module Rails
|
57
|
+
VERSION = '#{version}'
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end"
|
61
|
+
file = open('./lib/fullcalendar/v2/rails/version.rb', 'w')
|
62
|
+
file.write version_rb
|
63
|
+
file.close
|
64
|
+
puts 'git commit'
|
65
|
+
%x{git add --all ./lib/fullcalendar/v2/rails/version.rb ./vendor/assets/}
|
66
|
+
%x{git commit -m "Version #{version}"}
|
67
|
+
end
|
68
|
+
|
69
|
+
def update_release
|
70
|
+
puts 'rake release'
|
71
|
+
puts %x{bundle exec rake release}
|
72
|
+
end
|
73
|
+
|
74
|
+
def clear_assets
|
75
|
+
puts '[*] Cleaning assets'
|
76
|
+
%x{rm -rf ./vendor/assets/javascripts/fullcalendar/* ./vendor/assets/stylesheets/fullcalendar/*}
|
77
|
+
end
|
78
|
+
|
79
|
+
def downlaod_zipball(version)
|
80
|
+
puts '[*] Removing ./tmp'
|
81
|
+
%x{rm -rf ./tmp ; mkdir ./tmp}
|
82
|
+
puts '[*] Downloading zip file'
|
83
|
+
file = './tmp/fullcalendar-'+ version + '.zip'
|
84
|
+
%x{wget -qO #{file} -- '#{zip_url version}'}
|
85
|
+
file
|
86
|
+
end
|
87
|
+
|
88
|
+
def zip_url(version)
|
89
|
+
'https://github.com/arshaw/fullcalendar/releases/download/v' + version + '/fullcalendar-'+ version + '.zip'
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
|
94
|
+
updater = Updater.new
|
95
|
+
updater.run
|
File without changes
|