gatch 1.0.2 → 1.0.3

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: 5e68de4c780dcebebf14088995efd98f9f602983
4
- data.tar.gz: 372214d784b3d75a391bc7ba1563c078b9e4d07c
3
+ metadata.gz: db98f1e2734cd0a1bb5cba97339fbe8c11cadcd6
4
+ data.tar.gz: 89f11b223b329fd64a3dafdaf486807100195e8f
5
5
  SHA512:
6
- metadata.gz: ff835ac00ebdc9a3684069c13dab017c450e9616108fec140c51c7b58ae5e5f791c53e82e474465d4f7bc91b552d160086089751087afe5c654553be1f5e5880
7
- data.tar.gz: c01d6f2dc0267f9021e50d73e43cc9d95b063b4c5e791868f3246b6eb169bc9a41be37a0e73dd5af378442b06ed294a6b1f6f81687c041a765f46c85640e1f92
6
+ metadata.gz: 699e9200e89564cb20f34dce8472e451425b1a6368baca9d4691ac6142957f35a27dad19b6aec9f882b512b9fee2948061c1e3b78dab3c764f20a48412e032ae
7
+ data.tar.gz: 077aed546e36abf3325babdd3456b4d4cc5270871a129c94f46823ce300eec46b86980e9c078f4fa88f776e87e813bad35dec9a24a5261d03b2b9055cf8a56fd
@@ -15,8 +15,8 @@ Gem::Specification.new do |spec|
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
- spec.bindir = "exe"
19
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
+ spec.bindir = "bin"
19
+ spec.executables = ['gatch']
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_development_dependency "bundler", "~> 1.11"
@@ -18,12 +18,10 @@ module Gatch
18
18
 
19
19
  desc 'init','set up gatch'
20
20
  def init()
21
- system("mkdir gatch")
22
- system("cd gatch")
23
- system("git clone https://github.com/rinov/gatch")
21
+ system("git clone https://github.com/rinov/gatch-gulp")
24
22
  end
25
23
 
26
- desc 'start','start gatch'
24
+ desc 'run','run gatch'
27
25
  def start()
28
26
  system("gulp")
29
27
  end
@@ -1,3 +1,3 @@
1
1
  module Gatch
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Ishikawa
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2016-04-23 00:00:00.000000000 Z
12
12
  dependencies:
@@ -69,7 +69,8 @@ dependencies:
69
69
  description: It can preview your web side when you work on local environment.
70
70
  email:
71
71
  - ryo31330023@gmail.com
72
- executables: []
72
+ executables:
73
+ - gatch
73
74
  extensions: []
74
75
  extra_rdoc_files: []
75
76
  files:
@@ -84,13 +85,10 @@ files:
84
85
  - bin/console
85
86
  - bin/gatch
86
87
  - bin/setup
87
- - gatch-config.json
88
88
  - gatch.gemspec
89
- - gulpfile.js
90
89
  - lib/gatch.rb
91
90
  - lib/gatch/cli.rb
92
91
  - lib/gatch/version.rb
93
- - package.json
94
92
  homepage: https://github.com/rinov
95
93
  licenses:
96
94
  - MIT
@@ -1,8 +0,0 @@
1
- {
2
- "target":"../index.html",
3
- "watch":[
4
- "../index.html",
5
- "../css/*.css",
6
- "../js/*.js"
7
- ]
8
- }
@@ -1,36 +0,0 @@
1
- //Created by rinov on 2016/4/23
2
- //LICENSE : MIT
3
-
4
- var gulp = require('gulp');
5
- var plumber = require('gulp-plumber');
6
- var browser = require('browser-sync');
7
- var spider = require('./gatch-config.json');
8
-
9
- var watches = spider.watch;
10
- var target = spider.target
11
-
12
- gulp.task('backup',function(){
13
- });
14
-
15
- gulp.task('reload',function(){
16
- gulp.src(target)
17
- .pipe(browser.reload({stream:true}));
18
- });
19
-
20
- gulp.task('watch',function(){
21
- var length = watches.length;
22
- for(var i = 0; i < length; i++){
23
- gulp.watch(watches[i],['reload']);
24
- }
25
- });
26
-
27
- gulp.task('sync',function(){
28
- browser({
29
- server:{
30
- baseDir:'../',
31
- directory:true
32
- }
33
- });
34
- });
35
-
36
- gulp.task('default',['backup','sync','watch']);
@@ -1,17 +0,0 @@
1
- {
2
- "name": "Your site name",
3
- "version": "1.0.0",
4
- "description": "This file is used for install node_modules.",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "author": "rinov",
10
- "license": "MIT",
11
- "devDependencies": {
12
- "browser-sync": "^2.12.3",
13
- "gulp": "^3.9.1",
14
- "gulp-plumber": "^1.1.0",
15
- "gulp-webserver": "^0.9.1"
16
- }
17
- }