Rename webgalien to webgalen (to respect english/greek name)
This commit is contained in:
parent
393d02e925
commit
960e6e6ec5
14 changed files with 43 additions and 43 deletions
|
@ -1,7 +1,7 @@
|
||||||
PATH
|
PATH
|
||||||
remote: .
|
remote: .
|
||||||
specs:
|
specs:
|
||||||
webgalien (0.1.0)
|
webgalen (0.1.0)
|
||||||
celluloid (~> 0.17.3)
|
celluloid (~> 0.17.3)
|
||||||
colorize (~> 0.8.1)
|
colorize (~> 0.8.1)
|
||||||
mechanize (~> 2.7)
|
mechanize (~> 2.7)
|
||||||
|
@ -82,7 +82,7 @@ DEPENDENCIES
|
||||||
minitest
|
minitest
|
||||||
rake
|
rake
|
||||||
rasem (~> 0.7.1)
|
rasem (~> 0.7.1)
|
||||||
webgalien!
|
webgalen!
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
1.16.0
|
1.16.0
|
||||||
|
|
6
exe/webgalen
Executable file
6
exe/webgalen
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
|
require 'webgalen'
|
||||||
|
|
||||||
|
Webgalen::Cli.start(ARGV)
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
|
|
||||||
require 'webgalien'
|
|
||||||
|
|
||||||
Webgalien::Cli.start(ARGV)
|
|
||||||
|
|
23
lib/webgalen.rb
Normal file
23
lib/webgalen.rb
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
|
||||||
|
# Load external dependencies
|
||||||
|
require 'thor'
|
||||||
|
require 'celluloid/current'
|
||||||
|
require 'mechanize'
|
||||||
|
require 'selenium-webdriver'
|
||||||
|
require 'yaml'
|
||||||
|
require 'thor'
|
||||||
|
require 'colorize'
|
||||||
|
require 'fileutils'
|
||||||
|
|
||||||
|
# Load actors
|
||||||
|
require 'webgalen/actors/crop_png_actor'
|
||||||
|
require 'webgalen/actors/screenshot_actor'
|
||||||
|
require 'webgalen/actors/work_actor'
|
||||||
|
|
||||||
|
require 'webgalen/screenshot'
|
||||||
|
require 'webgalen/sitemap'
|
||||||
|
require 'webgalen/devices'
|
||||||
|
|
||||||
|
# Load cli
|
||||||
|
require 'webgalen/cli'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
# Actor for cropping png
|
# Actor for cropping png
|
||||||
module Webgalien
|
module Webgalen
|
||||||
class CropPngActor
|
class CropPngActor
|
||||||
include Celluloid
|
include Celluloid
|
||||||
|
|
|
@ -4,7 +4,7 @@ USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) ' \
|
||||||
# configure the driver to run in headless mode
|
# configure the driver to run in headless mode
|
||||||
# Selenium::WebDriver.logger.level =
|
# Selenium::WebDriver.logger.level =
|
||||||
|
|
||||||
module Webgalien
|
module Webgalen
|
||||||
class ScreenshotActor
|
class ScreenshotActor
|
||||||
include Celluloid
|
include Celluloid
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
module Webgalien
|
module Webgalen
|
||||||
class Work
|
class Work
|
||||||
attr_reader :id, :input, :artefacts
|
attr_reader :id, :input, :artefacts
|
||||||
attr_accessor :output
|
attr_accessor :output
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
require 'table_print'
|
require 'table_print'
|
||||||
|
|
||||||
module Webgalien
|
module Webgalen
|
||||||
class Cli < Thor
|
class Cli < Thor
|
||||||
class_option :'user-agent',
|
class_option :'user-agent',
|
||||||
aliases: '-ua',
|
aliases: '-ua',
|
|
@ -1,6 +1,6 @@
|
||||||
require 'csv'
|
require 'csv'
|
||||||
|
|
||||||
module Webgalien
|
module Webgalen
|
||||||
class Devices
|
class Devices
|
||||||
PROFILES_CSV = <<-MARK
|
PROFILES_CSV = <<-MARK
|
||||||
laptop, 1440, 900, computer, "x"
|
laptop, 1440, 900, computer, "x"
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
module Webgalien
|
module Webgalen
|
||||||
class Screenshot
|
class Screenshot
|
||||||
def self.start(sitemap:, output_path: , device:, orientation:)
|
def self.start(sitemap:, output_path: , device:, orientation:)
|
||||||
config = YAML.load File.open(sitemap)
|
config = YAML.load File.open(sitemap)
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
module Webgalien
|
module Webgalen
|
||||||
class Sitemap
|
class Sitemap
|
||||||
def self.start(url:, output:)
|
def self.start(url:, output:)
|
||||||
puts "Loading #{url}"
|
puts "Loading #{url}"
|
|
@ -1,4 +1,4 @@
|
||||||
|
|
||||||
module Webgalien
|
module Webgalen
|
||||||
VERSION = '0.1.0'.freeze
|
VERSION = '0.1.0'.freeze
|
||||||
end
|
end
|
|
@ -1,23 +0,0 @@
|
||||||
|
|
||||||
# Load external dependencies
|
|
||||||
require 'thor'
|
|
||||||
require 'celluloid/current'
|
|
||||||
require 'mechanize'
|
|
||||||
require 'selenium-webdriver'
|
|
||||||
require 'yaml'
|
|
||||||
require 'thor'
|
|
||||||
require 'colorize'
|
|
||||||
require 'fileutils'
|
|
||||||
|
|
||||||
# Load actors
|
|
||||||
require 'webgalien/actors/crop_png_actor'
|
|
||||||
require 'webgalien/actors/screenshot_actor'
|
|
||||||
require 'webgalien/actors/work_actor'
|
|
||||||
|
|
||||||
require 'webgalien/screenshot'
|
|
||||||
require 'webgalien/sitemap'
|
|
||||||
require 'webgalien/devices'
|
|
||||||
|
|
||||||
# Load cli
|
|
||||||
require 'webgalien/cli'
|
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
lib = File.expand_path('../lib', __FILE__)
|
lib = File.expand_path('../lib', __FILE__)
|
||||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||||
require 'webgalien/version'
|
require 'webgalen/version'
|
||||||
|
|
||||||
Gem::Specification.new do |spec|
|
Gem::Specification.new do |spec|
|
||||||
spec.name = "webgalien"
|
spec.name = "webgalen"
|
||||||
spec.version = Webgalien::VERSION
|
spec.version = Webgalen::VERSION
|
||||||
spec.authors = ["Glenn Y. Rolland"]
|
spec.authors = ["Glenn Y. Rolland"]
|
||||||
spec.email = ["glenux@glenux.net"]
|
spec.email = ["glenux@glenux.net"]
|
||||||
spec.summary = %q{Use GIT logs to give an estimation of spent time & costs of your projects.}
|
spec.summary = %q{Use GIT logs to give an estimation of spent time & costs of your projects.}
|
||||||
spec.description = %q{Use GIT logs to give an estimation of spent time & costs of your projects.}
|
spec.description = %q{Use GIT logs to give an estimation of spent time & costs of your projects.}
|
||||||
spec.homepage = "https://github.com/glenux/webgalien"
|
spec.homepage = "https://github.com/glenux/webgalen"
|
||||||
spec.license = "MIT"
|
spec.license = "MIT"
|
||||||
|
|
||||||
spec.files = `git ls-files -z`.split("\x0")
|
spec.files = `git ls-files -z`.split("\x0")
|
Loading…
Reference in a new issue