angular-material-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3b5a93eace61e1677ee7b670f85a00760a28bdce
4
+ data.tar.gz: 5e3b08b0fa2d4cb3ed5bd7053c74790d3f732837
5
+ SHA512:
6
+ metadata.gz: 85173d49c2328e446a50f07a943bccd1efa1096dbd3add114adb7e7eb67eaea34b7e5fa1ce0b5bd32b57d239495d0074e0c31209efe97e9947fd1512cabbff86
7
+ data.tar.gz: 6bd6a01176621477d9bf83a045d770025efb31764cd4328e73e5b0df97e364d3bef3e3575e9aa69be1f7a0eeb6897f32520c8dc7763a7fe0e8f6a1be4b6c5662
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ sencha-touch-rails-*.gem
2
+ pkg
3
+ .project
4
+ Gemfile.lock
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ## 0.0.1 (3 Nov 2015)
2
+
3
+ - Download master Angular Material
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+
data/LICENSE.txt ADDED
@@ -0,0 +1,26 @@
1
+ Copyright (c) 2014 AlexVangelov
2
+
3
+ AV License
4
+
5
+ Respect the work of the creator and have fun! 2011 Alex Vangelov
6
+
7
+ MIT License
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining
10
+ a copy of this software and associated documentation files (the
11
+ "Software"), to deal in the Software without restriction, including
12
+ without limitation the rights to use, copy, modify, merge, publish,
13
+ distribute, sublicense, and/or sell copies of the Software, and to
14
+ permit persons to whom the Software is furnished to do so, subject to
15
+ the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be
18
+ included in all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # sencha-touch-rails
2
+
3
+ This gem provides:
4
+
5
+ * Angular Material
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ gem 'angular-material-rails'
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Keep in mind that Angular Material is downloaded during the gem installation and can take a longer time. You can monitor download progress by install it yourself as:
18
+
19
+ $ gem install angular-material-rails --verbose
20
+
21
+ The Angular Material files will be added to the asset pipeline and available to use.
22
+
23
+ Add to `app/assets/javascripts/application.js`:
24
+
25
+ //= require angular-material
26
+
27
+ Add to `app/assets/stylesheets/application.css` (you can change the theme with your favorite)
28
+
29
+ *= require angular-material
30
+
31
+ More about Angular Material Theming:
32
+
33
+ [https://material.angularjs.org/latest/Theming/03_configuring_a_theme](https://material.angularjs.org/latest/Theming/03_configuring_a_theme)
data/Rakefile ADDED
@@ -0,0 +1,15 @@
1
+ require 'bundler'
2
+ require 'fileutils'
3
+ Bundler::GemHelper.install_tasks
4
+
5
+ task :default
6
+
7
+
8
+ import 'bin/download_angular_material.rb'
9
+ task :download_angular_material do
10
+ download_angular_material
11
+ end
12
+
13
+ task :install_angular_material do
14
+
15
+ end
@@ -0,0 +1,23 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/angular_material/rails/version', __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "angular-material-rails"
6
+ s.version = AngularMaterial::Rails::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ["Alex Vangelov"]
9
+ s.email = ["email@data.bg"]
10
+ s.homepage = "http://rubygems.org/gems/angular-material-rails"
11
+ s.summary = "Using Angular Material with Rails"
12
+ s.description = "This gem provides Angular Material to Rails assets pipeline"
13
+ s.licenses = ["AV","MIT"]
14
+
15
+ #s.required_rubygems_version = ">= 1.3.6"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.extensions = 'ext/mkrf_conf.rb'
19
+ s.require_path = 'lib'
20
+
21
+ s.add_dependency "rubyzip"
22
+ #s.add_dependency "thor"
23
+ end
@@ -0,0 +1,32 @@
1
+ require 'rubygems'
2
+ require 'open-uri'
3
+ require 'zip'
4
+ require 'fileutils'
5
+
6
+
7
+ def download_angular_material(angulal_material_zip=nil)
8
+ $VERBOSE = true
9
+ size = ""
10
+ angular_material_zip = 'https://github.com/angular/material/archive/master.zip'
11
+ puts "Get #{angular_material_zip}"
12
+ open( angular_material_zip,
13
+ :content_length_proc => lambda {|t|
14
+ if t && 0 < t
15
+ size = t.to_s
16
+ end
17
+ },
18
+ :progress_proc => lambda {|s|
19
+ print "Downloading #{s} of #{size} \r"
20
+ },
21
+ "User-Agent" => "Mozilla/5.0 (X11; U; Linux; i686; en-US; rv:1.6) Gecko Debian/1.6-7","Referer" => "http://rubygems.org/gems/angular-material-rails") {|zf|
22
+ Zip::File.open(zf.path) do |zipfile|
23
+ zipfile.each{|e|
24
+ print "Extracting #{File.basename(e.to_s)} \r"
25
+ fpath = File.join('angular-material', e.to_s)
26
+ FileUtils.mkdir_p(File.dirname(fpath))
27
+ zipfile.extract(e, fpath){ true }
28
+ }
29
+ end
30
+ }
31
+ puts "Download and extract Angular Material [OK] "
32
+ end
data/ext/mkrf_conf.rb ADDED
@@ -0,0 +1,9 @@
1
+ require 'rubygems'
2
+ require 'rubygems/command.rb'
3
+
4
+ f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w")
5
+ f.write("import '../bin/download_angular_material.rb'\n")
6
+ f.write("task :default do\n")
7
+ f.write("\tdownload_angular_material\n")
8
+ f.write("end\n")
9
+ f.close
@@ -0,0 +1,7 @@
1
+ module AngularMaterial
2
+ module Rails
3
+ require 'angular_material/rails/engine'
4
+ require 'angular_material/rails/version'
5
+ require 'angular_material/rails/template'
6
+ end
7
+ end
@@ -0,0 +1,12 @@
1
+ require 'sprockets'
2
+ require 'sprockets/engines'
3
+
4
+ module AngularMaterial
5
+ module Rails
6
+ class Engine < ::Rails::Engine
7
+ initializer "add assets" do |app|
8
+ #app.assets.register_engine '.angular-material', AngularMaterial::Rails::Template
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,6 @@
1
+ module AngularMaterial
2
+ module Rails
3
+ VERSION = "0.0.1"
4
+ ANGULAR_MATERIAL_VERSION = "Github master"
5
+ end
6
+ end
@@ -0,0 +1,2 @@
1
+ require 'angular-material/rails'
2
+
metadata ADDED
@@ -0,0 +1,73 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: angular-material-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Alex Vangelov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-11-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubyzip
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: This gem provides Angular Material to Rails assets pipeline
28
+ email:
29
+ - email@data.bg
30
+ executables: []
31
+ extensions:
32
+ - ext/mkrf_conf.rb
33
+ extra_rdoc_files: []
34
+ files:
35
+ - ".gitignore"
36
+ - CHANGELOG.md
37
+ - Gemfile
38
+ - LICENSE.txt
39
+ - README.md
40
+ - Rakefile
41
+ - angular-material-rails.gemspec
42
+ - bin/download_angular_material.rb
43
+ - ext/mkrf_conf.rb
44
+ - lib/angular_material/rails.rb
45
+ - lib/angular_material/rails/engine.rb
46
+ - lib/angular_material/rails/version.rb
47
+ - lib/angular_material_rails.rb
48
+ homepage: http://rubygems.org/gems/angular-material-rails
49
+ licenses:
50
+ - AV
51
+ - MIT
52
+ metadata: {}
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ requirements: []
68
+ rubyforge_project:
69
+ rubygems_version: 2.4.6
70
+ signing_key:
71
+ specification_version: 4
72
+ summary: Using Angular Material with Rails
73
+ test_files: []