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
|
||||
remote: .
|
||||
specs:
|
||||
webgalien (0.1.0)
|
||||
webgalen (0.1.0)
|
||||
celluloid (~> 0.17.3)
|
||||
colorize (~> 0.8.1)
|
||||
mechanize (~> 2.7)
|
||||
|
@ -82,7 +82,7 @@ DEPENDENCIES
|
|||
minitest
|
||||
rake
|
||||
rasem (~> 0.7.1)
|
||||
webgalien!
|
||||
webgalen!
|
||||
|
||||
BUNDLED WITH
|
||||
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
|
||||
module Webgalien
|
||||
module Webgalen
|
||||
class CropPngActor
|
||||
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
|
||||
# Selenium::WebDriver.logger.level =
|
||||
|
||||
module Webgalien
|
||||
module Webgalen
|
||||
class ScreenshotActor
|
||||
include Celluloid
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
module Webgalien
|
||||
module Webgalen
|
||||
class Work
|
||||
attr_reader :id, :input, :artefacts
|
||||
attr_accessor :output
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
require 'table_print'
|
||||
|
||||
module Webgalien
|
||||
module Webgalen
|
||||
class Cli < Thor
|
||||
class_option :'user-agent',
|
||||
aliases: '-ua',
|
|
@ -1,6 +1,6 @@
|
|||
require 'csv'
|
||||
|
||||
module Webgalien
|
||||
module Webgalen
|
||||
class Devices
|
||||
PROFILES_CSV = <<-MARK
|
||||
laptop, 1440, 900, computer, "x"
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
module Webgalien
|
||||
module Webgalen
|
||||
class Screenshot
|
||||
def self.start(sitemap:, output_path: , device:, orientation:)
|
||||
config = YAML.load File.open(sitemap)
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
module Webgalien
|
||||
module Webgalen
|
||||
class Sitemap
|
||||
def self.start(url:, output:)
|
||||
puts "Loading #{url}"
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
module Webgalien
|
||||
module Webgalen
|
||||
VERSION = '0.1.0'.freeze
|
||||
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
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
require 'webgalien/version'
|
||||
require 'webgalen/version'
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "webgalien"
|
||||
spec.version = Webgalien::VERSION
|
||||
spec.name = "webgalen"
|
||||
spec.version = Webgalen::VERSION
|
||||
spec.authors = ["Glenn Y. Rolland"]
|
||||
spec.email = ["glenux@glenux.net"]
|
||||
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.homepage = "https://github.com/glenux/webgalien"
|
||||
spec.homepage = "https://github.com/glenux/webgalen"
|
||||
spec.license = "MIT"
|
||||
|
||||
spec.files = `git ls-files -z`.split("\x0")
|
Loading…
Reference in a new issue